Language cache context should be passed to the block

Created on 1 October 2020, almost 5 years ago
Updated 16 May 2024, over 1 year ago

Problem/Motivation

On Multilingual sites, at the moment the menu block seems to be cached in the first language you visit.

This is resolved by passing the language:language_content cache context to the menu block.

I'm unsure if this is the best approach, but it fixes the issue and all languages are cached correctly from my testing. I'm attaching a patch that does this.

🐛 Bug report
Status

Postponed

Version

1.0

Component

Code

Created by

🇳🇿New Zealand danielveza Brisbane, AU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024