Feature #83734

Add support for current page in config.cache

Added by Francois Suter over 1 year ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Start date:
2018-01-31
Due date:
% Done:

100%

PHP Version:
7.1
Tags:
Complexity:
easy
Sprint Focus:

Description

When using the TS property "config.cache", it is possible to define a configuration that affects all pages, with a syntax like:

config.cache.all = fe_users:2

However such configurations always depend on a precise page where to look up records. A common scenario is to have records stored in each page itself. Thus such a syntax would be useful:

config.cache.all = fe_users:this

where "this" would be dynamically replaced by the current page id.

Associated revisions

Revision d8fad3f5 (diff)
Added by Benni Mack 6 months ago

[FEATURE] Allow config.cache.all = fe_users:current

The existing TypoScript functionality config.cache.all = ... allows a list
of tables and PIDs to take into account other records for the current page
caches.

The cache lifetime of page 42 takes starttime and endtime of news records of
page 15 and addresses of page 16 into account:

config.cache.42 = tt_news:15,tt_address:16

A new functionality used with "current" allows to take records of the current page
into account as well.

config.cache.all = fe_users:current

Resolves: #83734
Releases: master
Change-Id: Ib2063cc89e2c1549b7609b77948243e983d14c1b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60419
Tested-by: TYPO3com <>
Tested-by: Georg Ringer <>
Tested-by: Jörg Bösche <>
Tested-by: Benni Mack <>
Reviewed-by: Georg Ringer <>
Reviewed-by: Jörg Bösche <>
Reviewed-by: Fabien Udriot <>
Reviewed-by: Benni Mack <>

History

#1 Updated by Francois Suter over 1 year ago

A typical use case is when having IRRE items related to a content element (for example, the Bootstrap Package does this with Accordion and Carousel items).

#2 Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60419

#3 Updated by Gerrit Code Review 6 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60419

#4 Updated by Gerrit Code Review 6 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60419

#5 Updated by Benni Mack 6 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Benni Mack 6 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF