Actions
Story #81460
closedStory #81432: Replace TYPO3 caching solution with PSR-6 / Doctrine capable alternative
Sacrifice caches' ill conceived getIdentifiersByTag
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-06-03
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Sprint Focus:
On Location Sprint
Description
There are several reasons for needing to drop the getIdentifiersByTag method, but most important are:
- Tags are a concept designed for invalidation not retrieval
- Cache pools already accept "flushByTags" which serves invalidation purposes
- There is no way to reproduce this behavior via PSR-6 or PSR-16 interfaces
- Tags are handled differently by all engines and cannot be resolved externally without a large amount of processing (very likely including processing which must use Reflection to break the public contract)
- There is ONE single usage in all of TYPO3 which exists in the admin panel (a very legacy component) and is used to list the number of cached versions of a given page.
Sacrificing this single statistics output seems to be a reasonable choice - and will bring the TYPO3 concept of "cache tags" completely in line with the PSR-6 concept.
Actions