#102422Introduce CacheTagCollector Api
Description
A new API has been introduced to collect cache tags and there lifetime.
This API is used in the core to collect cache tags from page cache and
content object cache.
The API is implemented as a new PSR15 request attribute `cacheTags`
to remove the dependency from TSFE. This feature make using and testing
in the core and extensions easier as it provides a solid API.
Now every cache tag has a lifetime. The minimum lifetime is calculated
from all given cache tags. API users don’t have to deal with it individually.
The default lifetime for a cache tag is 86400 seconds (24 hours).
The current TSFE api is deprecated in favor of the new API as the current API
implementation does not allow to set a lifetime and extension authors have to
workaround it. The TSFE api will be removed with the next major version.
Reviews 14
- main 87840[DOCS] Correct method name in changelog to CacheDataCollector
- 13.4 87841[DOCS] Correct method name in changelog to CacheDataCollector
- main 86775[!!!][TASK] Remove deprecated methods in `TypoScriptFrontendController`
- main 86555[DOCS] Adjust feature RST for CacheDataCollector API
- main 81801[FEATURE] Introduce CacheDataCollector API
- main 86195[BUGFIX] Correct deprecation messages in TSFE for cache tags methods
- main 86142[BUGFIX] Do not exceed `PHP_INT_MAX` in `CacheTimeout` middleware
- main 86125[TASK] Automatic frontend cache tagging
- main 85778[FEATURE] Automatic frontend cache tagging
- main 86105[BUGFIX] Replace access to non-existent TSFE property
- main 86099[BUGFIX] Ensure working functional test mocking in one test
- 12.4 82017[BUGFIX] Respect endtime of page when calculating the lifetime
- main 81930[BUGFIX] Respect endtime of page when calculating the lifetime
- main 81951[WIP][BUGFIX] Respect endtime of page when calculating the lifetime
Related issues 11
- Feature #92535Extbase controller / Plugins can't modify page cache lifetime
- Bug #102525Respect endtime of page when calculating the lifetime
- Bug #104971Ensure working functional test mocking in one test
- Bug #104975Undefined property when loading page from cache and [FE][debug]=1
- Feature #104990Automatic frontend cache tagging
- Bug #105003Invalid timestamp calculated by CacheTimeout middleware
- Bug #105037Correct deprecation message in TSFE->getPageCacheTags()
- Task #105274Wrong default cache lifetime in RST for CacheDataCollector
- Task #105460Remove deprecated methods in TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
- Bug #105703Premature end of script headers due to X-TYPO3-Cache-Tags
- Task #105973Correct method name in changelog to CacheDataCollector