Add stdWrap feature: addPageCacheTags
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.
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)
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.
[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.
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.
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn