Issue Feature Closed

#92535Extbase controller / Plugins can't modify page cache lifetime

Christoph Lehmann 10/11/20, 21:09 updated 12/04/24, 13:43

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.

Reviews 1