Issue Story Closed

#81460Sacrifice caches' ill conceived getIdentifiersByTag

Claus Due 06/03/17, 16:06 updated 10/02/18, 10:59

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.

Reviews 1