-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Introduce CacheDataCollector API #1042
Closed
TYPO3IncTeam opened this issue
Sep 14, 2024
· 0 comments
· Fixed by TYPO3-Documentation/TYPO3CMS-Reference-CoreApi#4963
Closed
[FEATURE] Introduce CacheDataCollector API #1042
TYPO3IncTeam opened this issue
Sep 14, 2024
· 0 comments
· Fixed by TYPO3-Documentation/TYPO3CMS-Reference-CoreApi#4963
Labels
Comments
brotkrueml
added a commit
to brotkrueml/TYPO3CMS-Reference-CoreApi
that referenced
this issue
Oct 30, 2024
Resolves: TYPO3-Documentation/Changelog-To-Doc#1042 Releases: main, 13.4
brotkrueml
added a commit
to brotkrueml/TYPO3CMS-Reference-CoreApi
that referenced
this issue
Oct 30, 2024
Resolves: TYPO3-Documentation/Changelog-To-Doc#1042 Releases: main, 13.4
brotkrueml
added a commit
to brotkrueml/TYPO3CMS-Reference-CoreApi
that referenced
this issue
Oct 30, 2024
Resolves: TYPO3-Documentation/Changelog-To-Doc#1042 Releases: main, 13.4
linawolf
closed this as completed
in
TYPO3-Documentation/TYPO3CMS-Reference-CoreApi#4963
Nov 1, 2024
linawolf
closed this as completed
in
Nov 1, 2024
TYPO3-Documentation/TYPO3CMS-Reference-CoreApi@9db7bc2
github-actions bot
pushed a commit
to TYPO3-Documentation/TYPO3CMS-Reference-CoreApi
that referenced
this issue
Nov 1, 2024
Resolves: TYPO3-Documentation/Changelog-To-Doc#1042 Releases: main, 13.4
linawolf
pushed a commit
to TYPO3-Documentation/TYPO3CMS-Reference-CoreApi
that referenced
this issue
Nov 1, 2024
Resolves: TYPO3-Documentation/Changelog-To-Doc#1042 Releases: main, 13.4 Co-authored-by: Chris Müller <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ℹ️ View this commit on Github
👥 Authored by Sascha Nowak [email protected]
✔️ Merged by Benjamin Franzke [email protected]
Commit message
[FEATURE] Introduce CacheDataCollector API
A new API has been introduced to collect cache tags and their
lifetime during frontend rendering. 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 PSR-7 request attribute
frontend.cache.collector
to remove the dependency from TSFE.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.
The frontend employs the following strategy: A relatively
early middleware adds an empty new cacheDataCollector
instance as attribute to request. Extensions rendering
code based on database records can then add cache tags
to this attribute. The FE rendering adds the final cache
content, the middleware then compiles the final cache
entries and triggers their persistence. There is an
additional event
AddCacheTagEvent
the middleware listensto. It allows adding cache tags at places where the request
is not available. This is a tribute to technical debt that
can not be avoided at the moment. That event is however
marked
@internal
and may vanish later.Resolves: #102422
Releases: main
Change-Id: Ice7b3b8aba7c4df3e48d3895d6388f5641fdad63
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81801
Tested-by: Torben Hansen [email protected]
Tested-by: Benjamin Franzke [email protected]
Reviewed-by: Stefan Bürk [email protected]
Reviewed-by: Benjamin Franzke [email protected]
Reviewed-by: Christian Kuhn [email protected]
Reviewed-by: Torben Hansen [email protected]
Tested-by: Stefan Bürk [email protected]
Tested-by: Guido Schmechel [email protected]
Tested-by: Christian Kuhn [email protected]
Tested-by: core-ci [email protected]
Reviewed-by: Guido Schmechel [email protected]
Reviewed-by: Benni Mack [email protected]
Tested-by: Sascha Nowak [email protected]
Reviewed-by: Sascha Nowak [email protected]
➕ Added files
13.3/Deprecation-102422-TypoScriptFrontendController-addCacheTags.rst
13.3/Feature-102422-CacheDataCollectorApi.rst
The text was updated successfully, but these errors were encountered: