Skip to content

Commit d126c4f

Browse files
authored
fix: correct method name in changelog to CacheDataCollector (#5250)
There is no method "getLifetime()" in the CacheDataCollector. Instead, it should be "resolveLifetime()" which returns the minimum lifetime of all defined cache tags. Related: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87840 Releases: main, 13.4
1 parent 757eb50 commit d126c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/ApiOverview/RequestLifeCycle/RequestAttributes/FrontendCacheCollector.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Example: Get minimum lifetime, calculated from all cache tags
9696
:caption: Get minimum lifetime, calculated from all cache tags
9797
9898
$cacheDataCollector = $request->getAttribute('frontend.cache.collector');
99-
$cacheDataCollector->getLifetime();
99+
$cacheDataCollector->resolveLifetime();
100100
101101
102102
.. _typo3-request-attribute-frontend-cache-collector-example-get-all-cache-tags:

0 commit comments

Comments
 (0)