Project

General

Profile

Actions

Feature #102422

closed

Introduce CacheTagCollector Api

Added by Sascha Nowak about 1 year ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
Start date:
2023-11-20
Due date:
% Done:

100%

Estimated time:
PHP Version:
8.1
Tags:
Complexity:
medium
Sprint Focus:

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.


Related issues 9 (1 open8 closed)

Related to TYPO3 Core - Feature #92535: Extbase controller / Plugins can't modify page cache lifetimeNew2020-10-11

Actions
Related to TYPO3 Core - Bug #102525: Respect endtime of page when calculating the lifetimeClosed2023-11-27

Actions
Related to TYPO3 Core - Bug #104971: Ensure working functional test mocking in one testClosedStefan Bürk2024-09-15

Actions
Related to TYPO3 Core - Bug #104975: Undefined property when loading page from cache and [FE][debug]=1Closed2024-09-15

Actions
Related to TYPO3 Core - Feature #104990: Automatic frontend cache taggingClosed2024-09-16

Actions
Related to TYPO3 Core - Bug #105003: Invalid timestamp calculated by CacheTimeout middlewareClosed2024-09-17

Actions
Related to TYPO3 Core - Bug #105037: Correct deprecation message in TSFE->getPageCacheTags()ClosedChris Müller2024-09-19

Actions
Related to TYPO3 Core - Task #105274: Wrong default cache lifetime in RST for CacheDataCollectorClosedTorben Hansen2024-10-11

Actions
Related to TYPO3 Core - Task #105460: Remove deprecated methods in TYPO3\CMS\Frontend\Controller\TypoScriptFrontendControllerResolvedThomas Hohn2024-10-25

Actions
Actions

Also available in: Atom PDF