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
Blocked on #2432837: Make cache contexts hierarchical (e.g. 'user' is more specific than 'user.roles').
See #2099137-48: Entity/field access and node grants not taken into account with core cache contexts & #2099137-74: Entity/field access and node grants not taken into account with core cache contexts.
Proposed resolution
Remaining tasks
User interface changes
None.
API changes
None.
Comments
Comment #1
Wim Leers#2432837: Make cache contexts hierarchical (e.g. 'user' is more specific than 'user.roles') landed, this is now unblocked!
Comment #2
Wim Leers#2432837: Make cache contexts hierarchical (e.g. 'user' is more specific than 'user.roles') already introduced the
languages:<type>
cache contexts. Now we should apply it consistently everywhere.But, #2453059: Set default render cache contexts: 'theme' + 'languages:' . LanguageInterface::TYPE_INTERFACE is already doing that.
So, marking this as a duplicate.
Related: #2428837: Adding/updating interface translations should invalidate page & render caches.