Actions
Feature #92535
openExtbase controller / Plugins can't modify page cache lifetime
Status:
New
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2020-10-11
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
In a extbase controller i list records where things changes at a given time, so i like to reduce the cache lifetime of the page.
TypoScriptFrontendController::get_cache_timeout() has a hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['get_cache_timeout']
but it’s executed before my extbase controller and the result gets cached…
Later in TypoScriptFrontendController::realPageCacheContent() is a hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['usePageCache']
but it can’t modify the cache lifetime variable.
Actions