Project

General

Profile

Actions

Feature #102422

open

Introduce CacheTagCollector Api

Added by Sascha Nowak 6 months ago. Updated 2 days ago.

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

0%

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 2 (1 open1 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 lifetimeResolved2023-11-27

Actions
Actions #1

Updated by Christoph Lehmann 5 months ago

  • Related to Feature #92535: Extbase controller / Plugins can't modify page cache lifetime added
Actions #2

Updated by Christian Kuhn 5 months ago

  • Related to Bug #102525: Respect endtime of page when calculating the lifetime added
Actions #3

Updated by Benni Mack 3 months ago

  • Target version changed from 13.0 to 13.1
Actions #4

Updated by Benni Mack 2 days ago

  • Target version changed from 13.1 to 13.2
Actions

Also available in: Atom PDF