Review main Merged

70186[TASK] Move cache clearing into CacheService of Extbase

Benni Mack CR +2 V +2 Hard +129 −126 updated 08/04/21, 11:15

Commit message

Currently Extbase ships with a custom CacheService
which contains all PageIDs where the cache should be
cleared once the plugin has been finished processing.

In order to reduce the amount of injections within
Typo3DbBackend, and decoupled Typo3DbBackend from
the actual implementation of how caches are flushed,
the cache clearing for pages of specific records
is now moved into CacheService directly.

This way, a better separation of concerns happens
and custom StorageBackends can be implemented without
needing to worry about TYPO3's internal cache flushing
strategy.

On top, it will become simpler to remove the SingletonInterface
of Typo3DbBackend, if desired, as it does not keep
state of the plugin via ConfigurationManager.

Additionally, if we ever want to create a generic
Cache Clearing logic (decoupled from DataHandler),
we could simply combine CacheService with the new API.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 4