Project

General

Profile

Actions

Feature #92535

open

Extbase controller / Plugins can't modify page cache lifetime

Added by Christoph Lehmann over 3 years ago. Updated about 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 (2 open0 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 ApiNew2023-11-20

Actions
Actions #1

Updated by Christoph Lehmann over 3 years ago

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

Updated by Sybille Peters about 1 year ago

  • Status changed from New to Needs Feedback

I would need, the functionality too, but isn't it a feature, not a bug?

Actions #3

Updated by Christoph Lehmann about 1 year 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?

Actions #4

Updated by Gerrit Code Review about 1 year 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

Actions #5

Updated by Gerrit Code Review about 1 year 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

Actions #6

Updated by Sybille Peters about 1 year ago

  • Status changed from Under Review to New
Actions #7

Updated by Gerrit Code Review about 1 year 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

Actions #8

Updated by Sybille Peters about 1 year ago

  • Status changed from Under Review to New

I created an example extension to test the behaviour: https://github.com/sypets/sypets_example_plugincacheexpiration

Actions #9

Updated by Gerrit Code Review about 1 year 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

Actions #10

Updated by Gerrit Code Review about 1 year 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

Actions #11

Updated by Gerrit Code Review about 1 year 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

Actions #12

Updated by Gerrit Code Review about 1 year 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

Actions #13

Updated by Gerrit Code Review about 1 year 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

Actions #14

Updated by Gerrit Code Review about 1 year 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

Actions #15

Updated by Gerrit Code Review about 1 year 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

Actions #16

Updated by Gerrit Code Review about 1 year 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

Actions #17

Updated by Gerrit Code Review about 1 year 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

Actions #18

Updated by Sybille Peters about 1 year ago

  • Status changed from Under Review to New
Actions #19

Updated by Christoph Lehmann 5 months ago

Actions

Also available in: Atom PDF