Skip to content

Commit

Permalink
[BUGFIX] reset backPath after varnish cache flush mittwald#18
Browse files Browse the repository at this point in the history
  • Loading branch information
kai.lorenz committed Mar 14, 2017
1 parent 6d39572 commit 9adf2fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Hooks/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;


/**
Expand Down Expand Up @@ -66,6 +68,9 @@ 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;
}

Expand Down

0 comments on commit 9adf2fa

Please sign in to comment.