Project

General

Profile

Actions

Feature #34403

closed

Add stdWrap feature: addPageCacheTags

Added by Fabrizio Branca over 12 years ago. Updated about 6 years ago.

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

100%

Estimated time:
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 1 (0 open1 closed)

Has duplicate TYPO3 Core - Feature #45090: Allow TypoScript to add pageCacheTags to page for cachingframeworkClosed2013-02-02

Actions
Actions

Also available in: Atom PDF