Problem with Cache for Dynamic Blocks

Created on 13 September 2023, 9 months ago

Scenario:

- Drupal 10 installation using the standard profile (Drupal 8 and 9 may exhibit the same effect).
- Content Types:
- Article Content Type with a Block Field (Referenced: Block).
- News Content Type with a Date Field (Future Publication).
- Views Block: Lists content from News in a table. Filtered by "Less than or equal to" Future Publication (date field). Cache set to "None." Display set to show all content (not limited to a specific quantity to avoid testing errors).
- Create a block using the News view and place it in a region (typically in an unrendered region, for testing, possibly in the footer).
- Browser and Proxy Cache Maximum Age: No caching.

Steps:
- Create various content:
1 Article with a reference to the block (views block).
2 News items with past dates.
1 News item with a date in the near future.
- Open the article as a guest.
- Let time pass, and the content is not updated.

Content gets updated when:
- Clearing the entire cache.
- Creating any page (regardless of content type).

Content does not get updated when:
- Waiting.
- After running the CronJob.
- Creating a taxonomy

Note: This is just an example to reproduce the issue. Problems occur whenever block data is dynamic. It doesn't matter whether the block is from a module with cache set to 0.

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
CacheΒ  β†’

Last updated about 12 hours ago

Created by

πŸ‡©πŸ‡ͺGermany HeavyStoneHead

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024