Review main Merged

97417[TASK] Flush cache tags in any cache group via CacheFlusher

Benni Mack CR +2 V +2 Hard +329 −50 updated 11/11/26, 12:56

Commit message

CacheFlusher flushed cache tags in the "pages" cache group only, so
the console command "cache:flushtags" and the flushing of file,
folder and file metadata tags by the automatic frontend cache tagging
kept calling CacheManager directly, without the cache flushing events.

CacheFlushDemand now names the cache group of its cache tags:
forTags() keeps the "pages" group, forTagsInGroup() and
withTagsInGroup() take any group, or "all" for all caches. Plan and
result keep the cache tags per group, and tags of a group that does
not exist are skipped and reported in the result.

"cache:flushtags" and the three file listeners use CacheFlusher now.
Their tags are flushed in the same caches as before, and the cache
flushing events are dispatched for them as well. "cache:flushtags"
reports unknown cache groups instead of throwing an exception.

The changelog entry of the CacheFlusher feature is now extended.

Review

  • Code review CR +2 Done
    • Benni Mack +2
    • Georg Ringer +1
    • Simon Schaufelberger +1
  • Verified V +2 Done
    • Benni Mack +2
    • Georg Ringer +1
    • Simon Schaufelberger +1
    • core-ci +1 CI

Issues 2

Files 13

Review log 67

  1. Benni Mack uploaded patch set 1 11/07/26, 22:08

  2. core-ci voted on patch set 1 V +1 11/07/26, 22:16 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113580

  3. Benni Mack marked it ready for review 11/09/26, 09:30

  4. Georg Ringer voted on patch set 1 CR +1 V +1 11/11/26, 09:37

  5. Simon Schaufelberger voted on patch set 1 CR +1 V +1 11/11/26, 12:32

  6. Benni Mack voted on patch set 1 CR +2 V +2 11/11/26, 12:56

  7. Benni Mack merged patch set 2 11/11/26, 12:56