Cache Tag invalidation not working for lists in custom blocks

Created on 5 January 2023, almost 2 years ago
Updated 10 May 2023, over 1 year ago

Problem/Motivation

Drupal 9.4.5: We run sites for the College of Engineering at The Ohio State University, and leverage lists of nodes like news within content via Layout Builder and Custom Blocks. In our particular case, we have seen that when new news nodes are added, they do not appear on these list blocks. Only a full cache rebuild causes them to appear. We have tried both with and without list overriding enabled, and while the correct cache tag appears in the `surrogate-key-raw` (`node_emit_list:coe_news` or `node_list:coe_news`) for the page, the cache of the page/block does not get cleared. We have ensured that the views in question and the blocks themselves have the correct cache tags (via custom cache tags and a build_alter, respectively).

A manual tag invalidation with drush (`drush site.env ct "node_list:coe_news"`) similarly does not have any effect. The new nodes do not appear.

I have a multidev where I was testing this at https://caching-eng-main.pantheonsite.io/. We have a more general news feed that displays things as desired: https://caching-eng-main.pantheonsite.io/news.

We have not ruled out a design/coding issue on our side, but the stubborness of the edge cache is causing us to have to rebuild site cache far more often than we'd like, and any insight would be useful.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States R_H-L

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