Issue Feature Closed

#79053Page cache tags not accessible from hooks

Michel Tremblay 12/20/16, 16:51 updated 03/28/19, 09:22

Description

In class \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController, the $pageCacheTags attribute is protected. It is possible to add tags via “addCacheTags” method, but there is no getter, so it is not possible to read this value from hooks called in “generatePage_postProcessing”.

Use cases :
  • Add cache tags to http headers for an external cache system like Varnish (contentPostProc-output hook)
  • Use cache tags in search index to detect possible changes (pageIndexing hook)

Reviews 1