Wrong language served when using Language Cookie with Drupal page caching

Created on 13 February 2014, over 11 years ago
Updated 3 July 2025, 12 days ago

When using Language Cookie with Drupal page caching enabled the pages might be served in the wrong language because only one language is cached per url (since the url is the cid in Drupal page cache). The changes in #1758754: Cached pages not using language selection from cookie did not fix this for us so we took another approach and we extended the default cache class. See the patch attached.

Please review and feel free to comment on the approach. Did we overlook something? Any drawbacks with this approach?

📌 Task
Status

Closed: outdated

Version

1.8

Component

Code

Created by

🇳🇱Netherlands ricovandevin

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