Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
CacheCollector doesn't detect changing cid after cid has been set. If the cid changes for some reason later on the processing the old cache key will be still used.
Proposed resolution
Re-factor CacheCollector to use a $this->storage[$cid] prefix for all internal storage like HookElementInfo() or implement a kind of SubscriberInterface so that a changing getCid() can be detected and handled.
Remaining tasks
-
User interface changes
-
API changes
-
Comments
Comment #1
Fabianx CreditAttribution: Fabianx for Acquia commentedTagging
Comment #2
joelpittetThis doesn't seem to be Twig related. Removing tag. Also, since RC this may not be possible?
Should we move this to 8.1.x?
Comment #3
Fabianx CreditAttribution: Fabianx for Acquia commentedYeah, no priority for 8.0.x
Comment #4
catchUnless there's a functional bug at the moment (in which case we need an issue referenced that this would fix/blocks), this looks like a task to me.