Feature #92535
openExtbase controller / Plugins can't modify page cache lifetime
0%
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.
Updated by Christoph Lehmann about 4 years ago
- Related to Bug #91561: Lifetime of cache is not properly computed for "Insert Records" CE added
Updated by Sybille Peters almost 2 years ago
- Status changed from New to Needs Feedback
I would need, the functionality too, but isn't it a feature, not a bug?
Updated by Christoph Lehmann almost 2 years ago
- Tracker changed from Bug to Feature
- Status changed from Needs Feedback to New
- TYPO3 Version deleted (
10)
Yes, Feature fits better.
Since Extbase actions return a ResponseInterface.. How about adding a Cache Header to it, which is then used for page cache lifetime calculation?
Updated by Gerrit Code Review almost 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Sybille Peters almost 2 years ago
- Status changed from Under Review to New
I created a patch: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
- Status changed from New to Under Review
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Sybille Peters almost 2 years ago
- Status changed from Under Review to New
I created an example extension to test the behaviour: https://github.com/sypets/sypets_example_plugincacheexpiration
Updated by Gerrit Code Review almost 2 years ago
- Status changed from New to Under Review
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Gerrit Code Review almost 2 years ago
Patch set 12 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77894
Updated by Sybille Peters over 1 year ago
- Status changed from Under Review to New
Updated by Christoph Lehmann almost 1 year ago
- Related to Feature #102422: Introduce CacheTagCollector Api added