Problem/Motivation

In case a site-owner does modifications to the template and for instance adds a language switcher inside the popup, the data is cached per language on the first request causing the all subsequent visits to be redirected to the page of the first cached visit.

By being able to perform alterations on the cache-id it would be possible to make needed distinctions, like in the given case based on the route.

Proposed resolution

Implement a hook to make modifications to the cache id.

API changes

Document the hook to alter the cache id.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thierry.beeckmans created an issue. See original summary.

svenryen’s picture

Status: Active » Needs review
svenryen’s picture

Status: Needs review » Fixed

Tested and merged!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.