diff --git a/Classes/Hooks/Cache.php b/Classes/Hooks/Cache.php index 20e945f..3d9a917 100644 --- a/Classes/Hooks/Cache.php +++ b/Classes/Hooks/Cache.php @@ -27,6 +27,8 @@ use Mittwald\Varnishcache\Service\VarnishCacheService; use TYPO3\CMS\Core\DataHandling\DataHandler; +use TYPO3\CMS\Core\Page\PageRenderer; +use TYPO3\CMS\Core\Utility\GeneralUtility; /** @@ -66,6 +68,10 @@ public function clearCachePostProc(array &$params, DataHandler $dataHandler) { foreach ($params['pageIdArray'] as $pageId) { $this->getVarnishCacheService()->flushCache($pageId); } + + $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); + $pageRenderer->setBackPath(NULL); + return; }