Provide cache tags which are invalidated when a state variable changes.

Created on 11 January 2022, almost 3 years ago
Updated 3 July 2023, over 1 year ago

Problem/Motivation

Sometimes a render array includes the value of a state variables, it would be good to be able to provide a cache tag which tells Drupal to invalidate caching of said render array when that state variable changes.

Steps to reproduce

Please see [the question "What cache tags can be triggered by a change in state variables?" on Drupal Answers](https://drupal.stackexchange.com/questions/309121/what-cache-tags-can-be...).

Proposed resolution

Invalidate cache tags when state variables change.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

11.0 🔥

Component
Other 

Last updated about 5 hours ago

Created by

🇨🇦Canada alberto56

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