[!!!][FEATURE] Move Cache Lifetime Calculation into its own class
This change moves the logic for calculating the max time for caching a frontend page into a separate class. In addition, the existing hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['get_cache_timeout'] is removed in favor of a new "ModifyCacheLifetimeForPageEvent". Resolves: #96879 Releases: main Change-Id: I4b3a7f3a2aa1cb0307ed021bb5344edfeab11e91 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73475 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Documentation/Changelog/12.0/Breaking-96879-RemovedHookGetCacheTimeout.rst 36 additions, 0 deletions...ngelog/12.0/Breaking-96879-RemovedHookGetCacheTimeout.rst
- typo3/sysext/core/Documentation/Changelog/12.0/Feature-96879-NewPSR-14EventModifyCacheLifetimeForPageEvent.rst 51 additions, 0 deletions...e-96879-NewPSR-14EventModifyCacheLifetimeForPageEvent.rst
- typo3/sysext/frontend/Classes/Cache/CacheLifetimeCalculator.php 221 additions, 0 deletions...sysext/frontend/Classes/Cache/CacheLifetimeCalculator.php
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php 11 additions, 176 deletions...ntend/Classes/Controller/TypoScriptFrontendController.php
- typo3/sysext/frontend/Classes/Event/ModifyCacheLifetimeForPageEvent.php 66 additions, 0 deletions...rontend/Classes/Event/ModifyCacheLifetimeForPageEvent.php
- typo3/sysext/frontend/Configuration/Services.yaml 5 additions, 0 deletionstypo3/sysext/frontend/Configuration/Services.yaml
- typo3/sysext/frontend/Tests/Functional/Cache/CacheLifetimeCalculatorTest.php 18 additions, 40 deletions...nd/Tests/Functional/Cache/CacheLifetimeCalculatorTest.php
- typo3/sysext/frontend/Tests/Functional/Cache/fixtures.csv 0 additions, 0 deletionstypo3/sysext/frontend/Tests/Functional/Cache/fixtures.csv
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php 5 additions, 0 deletions...figuration/ExtensionScanner/Php/ArrayDimensionMatcher.php
Please register or sign in to comment