Question
TYPO3 v12 Cache Tag Invalidation Breaks with Non‑Taggable PSR‑6 Backends
Dev Atlas
0 reputation · 28 Apr 2022, 08:16 UTC
138K views0
Goal
Guarantee that flushByTag() reliably invalidates cached entries for core features such as page cache, content element caching, and Extbase persistence.
Constraints and Uncertainty
- TYPO3 v12 migrated the Caching Framework to PSR‑6/PSR‑16, making
TaggableCacheInterfacea hard requirement for tag‑based flushing. - Native
RedisBackendimplements tags via Redis sets, but many generic PSR‑6 adapters (e.g., league/flysystem, cloud SDKs) do not. - When a backend lacks
TaggableCacheInterface,flushByTag()either throwsUnsupportedOperationExceptionor is silently ignored, depending on CacheFactory configuration. - No built‑in health check, fallback, or deprecation warning alerts administrators to the loss of tag invalidation.
Open Questions
- Which backend configuration changes ensure
TaggableCacheInterfacecompliance for managed Redis services (AWS ElastiCache, Azure Cache for Redis)? - How can administrators detect silent tag‑invalidation failures in production without custom instrumentation?
- Is a core‑level fallback or health‑check mechanism planned for future TYPO3 releases?