On this page
Bubbleable metadata
Last updated on
13 October 2016
The parent page explains cacheability in general. This looks in detail at how render arrays bubble cacheability.
Concepts
- Cacheability metadata: contexts, tags, max-age. TO BE EXPANDED
- Bubbleable metadata: cacheability metadata +
#attached+#post_render_cachecallbacks. TO BE EXPANDED - Default render cache contexts: every render array that uses
#themeuses templates of the negotiated theme, and almost every render array contains translated strings (i.e. text wrapped in at()call). That's why Drupal adds the corresponding cache contexts ('theme'and'languages:' . LanguageInterface::TYPE_INTERFACE, respectively) by default. The default cache contexts are specified in the%renderer.config%container parameter'srequired_cache_contextskey.
(Note: for very advanced use cases, sites can choose to override those default required cache contexts.)
TO BE EXPANDED
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion