Bug #92535

Extbase controller / Plugins can't modify page cache lifetime

Added by Christoph Lehmann 12 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2020-10-11
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
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.


Related issues

Related to TYPO3 Core - Bug #91561: Lifetime of cache is not properly computed for "Insert Records" CE New 2020-06-03

History

#1 Updated by Christoph Lehmann 12 days ago

  • Related to Bug #91561: Lifetime of cache is not properly computed for "Insert Records" CE added

Also available in: Atom PDF