Task #91231
closedAdd tags to clearCachePostProc Hook parameters
100%
Description
Tags are not passed to the clearCachePostProc hooks which means any implementation will have to duplicate the same logic.
Updated by Gerrit Code Review over 4 years 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/+/64344
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64353
Updated by Patrick Schriner over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2fd5f3f1ebb8c8133ee4beed5413368dcaca901f.
Updated by Philipp Kitzberger 8 months ago ยท Edited
Unfortunately the "tags" array looks different for the two cases the clearCachePostProc is being called:
- DataHandler->clear_cacheCmd(): "tags" is an array with numeric indices and the cache tag as value
- DataHandler->prepareCacheFlush(): "tags" is an array with cache tags as indices and true as value
So handling those tags in a hook needs to take those two "formats" into consideration, which I find not ideal ;-(
(TYPO3 11)