Review main Abandoned

81881[FEATURE] Introduce CacheTagCollector Api

Sascha Nowak CR 0 V 0 Expert +1267 −114 updated 11/24/23, 09:26

Commit message

A new API has been introduced to collect cache tags and their 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 :php:`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: #102422
Releases: main
Change-Id: Ice7b3b8aba7c4df3e48d3895d6388f5641fdad63

[WIP] Add cache tags and cache tags flushing

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Files 30

Show 10 more files