Add and use a node_list:published cache tag

Created on 17 May 2021, about 4 years ago
Updated 23 March 2023, over 2 years ago

Problem/Motivation

The node_list cache tag is very generic. We've already introduce a list cache tag per bundle #2145751: Introduce ENTITY_TYPE_list:BUNDLE cache tag and add it to single bundle listing β†’ and are looking at how to use it - πŸ› Use new cache tag ENTITY_TYPE_list:BUNDLE in Views to improve cache hit rate Needs work . But there is another issue. Every time an unpublished node is edited or a draft created the list cache tags are invalidated. This means that an editor doing small edits to an article whilst preparing an article is behaving like a cache buster for any views that list nodes - for example taxonomy listing, recent content and the frontpage view. Since the node is unpublished none of these changes will cause any real changes.

Steps to reproduce

Proposed resolution

Introduce an published list cache tag and work together with πŸ› Use new cache tag ENTITY_TYPE_list:BUNDLE in Views to improve cache hit rate Needs work to work out how views filters can alter the list cache tags of a view.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

10.1 ✨

Component
CacheΒ  β†’

Last updated 12 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

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