From 0e4d31e02387d370aa757f0937d2e6b76ba8e15c Mon Sep 17 00:00:00 2001 From: Yorkie Chadwick Date: Mon, 26 Oct 2020 09:23:17 +0100 Subject: [PATCH] Update FrontendPageController.php Cache key was causing server 503 error. Not yet sure why --- src/Controller/FrontendPageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);