Feature #34403

Add stdWrap feature: addPageCacheTags

Added by Fabrizio Branca almost 8 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-02-29
Due date:
% Done:

100%

PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

In the release notes for TYPO3 4.7.0beta1 in the wiki (http://wiki.typo3.org/TYPO3_4.7) you'll find:

As a result, these tags are added to the page-cache and TCEmain.clearCacheCmd is enabled to drop page cache by these tags.

Actually this is not true as issue #34299 does store cache tags for the stdWrap content to cache_hash, but not to cache_pages.

This means that you cannot delete this cached stdWrap content using TCEmain.clearCacheCmd with the feature introduced in #34352.

Add stdWrap.addPageCacheTags

On the one hand it actually also might be a very useful feature if page cache tags can be added using stdWrap so I suggest to add following easy to implement feauture to stdWrap that actually stores the tags into cache_pages

stdWrap.addPageCacheTags = pagetag1,pagetag2,pagetag3

I suggest to not put this configuration option inside "cache." to make clear that this will affect other cache tables than the ones addressed in "cache.".

We usually write those page cache tags inside frontend plugins but having this also inside stdWrap could be very handy.

Add TCEmain.clearCacheCmd = cacheHashTag:latestnewsbox

On the other hand we could also add a TCEmain feauture to clear content by tag from cache_hash. (Also see comments in https://review.typo3.org/#change,9266)

Conclusion

Add these two features to the other set of newly introduced cache (tag) related features gives youfull flexibility to handle cache entries and cache tags on cache_pages and cache_hash content.


Related issues

Duplicated by TYPO3 Core - Feature #45090: Allow TypoScript to add pageCacheTags to page for cachingframework Closed 2013-02-02

Associated revisions

Revision 61df9ce7 (diff)
Added by Fabrizio Branca over 6 years ago

[FEATURE] Add stdWrap feature: addPageCacheTags

This feature comes after feature freeze for 4.7 but accidently it was
already mentioned in the release notes while not being implemented yet.

Release notes mention that the new stdWrap.cache feature (#34299)
stores cache tags that can be flushed by tag from TCEmain.clearCacheCmd
with feature #34352.

As stdWrap.cache stores tags into cache_hash and not into cache_pages
the feature mentioned in the release notes does not work that way.

But nevertheless that would be a handy feature and so I suggest to
add stdWrap.addPageCacheTags = pagetag1,pagetag2,pagetag3

To distinguish these tags being written to cache_pages instead of
cache_hash I'd suggest to not have this feature inside "cache." but
as a separate configuration option "addPageCacheTags".

See http://forge.typo3.org/issues/34403 for some more details.

Including the other cache (tag) related features this completes a set
of handy tools to handly cache tags in a very flexible way.

Change-Id: Ida42937356644f8ea1c27cecdf1e8252182b06ee
Resolves: #34403
Releases: 6.1
Reviewed-on: https://review.typo3.org/9294
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

History

#1 Updated by Gerrit Code Review almost 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9294

#2 Updated by Steffen Ritter almost 8 years ago

  • Target version deleted (4.7.0)

#3 Updated by Gerrit Code Review over 6 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9294

#4 Updated by Gerrit Code Review over 6 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9294

#5 Updated by Gerrit Code Review over 6 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9294

#6 Updated by Gerrit Code Review over 6 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9294

#7 Updated by Gerrit Code Review over 6 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9294

#8 Updated by Gerrit Code Review over 6 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9294

#9 Updated by Gerrit Code Review over 6 years ago

Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9294

#10 Updated by Fabrizio Branca over 6 years ago

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

#11 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF