A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
Setting up custom cache tags to reduce Varnish misses on views page | Cloud Platform | Acquia Product Documentation
Cloud Platform
Setting up custom cache tags to reduce Varnish misses on views page
Setting up custom cache tags to reduce Varnish misses on views page
Date Published: March 8, 2022
To prevent a view page from being invalidated by all node changes, it may be desired to set up custom cache tags.
If a site has hundreds of views and nodes of content, invalidating the caches of these views can add performance issues because every node change invalidates every view. As a result, the view page will get more Varnish cache misses than hits.
Drupal 8 automatically adds cache tags to every view so that their content can be invalidated when any of the content changes... However, Drupal 8 only has a single list cache tag for every entity type. Every view that lists nodes is tagged with node_list and will be invalidated when a node is added, changed or deleted.
This module replaces the hardcoded cache tag with a form that allows developers to set different cache tags based on configuration of the view.