By catch on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.9.x
Introduced in version:
8.9.0
Description:
A new ENTITY_TYPE_list:BUNDLE cache tag has been added, for more granular invalidation of cached lists of entities.
Currently, if showing a list of nodes of type 'article', this will be invalidated even if a node of type 'page' is updated, due to the ENTITY_TYPE_list cache tag (node_list).
The new cache tag (for example: node_list:article, allows entity listings to be tagged only with the relevant bundle listing cache tag, reducing the frequency of cache invalidations without sacrificing cache consistency.
Impacts:
Module developers
Comments
Using this with Views
Consider https://www.drupal.org/project/views_custom_cache_tag to use this new cache tag with Views, at least until #3055371: Use new cache tag ENTITY_TYPE_list:BUNDLE in Views to improve cache hit rate is resolved.
node_list:article
node_list:article
if in my render all node using taxonomy how to add cache tag for same
Best regards,
Omprakash Mankar
Senior Drupal Developer
You can implement your own
You can implement your own cache tags for a certain field, the project page on https://www.drupal.org/project/views_custom_cache_tag has an example for exactly that use case.