Project

General

Profile

Actions

Feature #92535

open

Extbase controller / Plugins can't modify page cache lifetime

Added by Christoph Lehmann about 4 years ago. Updated over 1 year ago.

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.


Related issues 2 (1 open1 closed)

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

Actions
Related to TYPO3 Core - Feature #102422: Introduce CacheTagCollector ApiClosed2023-11-20

Actions
Actions

Also available in: Atom PDF