diff --git a/src/Controller/FrontendPageController.php b/src/Controller/FrontendPageController.php index d1203d40b..06183031c 100644 --- a/src/Controller/FrontendPageController.php +++ b/src/Controller/FrontendPageController.php @@ -148,7 +148,7 @@ public function indexAction(Request $request) } $updatedAt = $this->pageCache->get(sprintf('page_%s_created_at', $page->getId())); - $cacheKey = 'page_'.$request->getLocale().$request->getPathInfo(); + $cacheKey = 'page_'.$request->getLocale().str_replace('/', '', $request->getPathInfo()); if ($updatedAt != $page->getSnapshotDate()) { $this->pageCache->delete($cacheKey);