Skip to content

Commit 0e4d31e

Browse files
authored
Update FrontendPageController.php
Cache key was causing server 503 error. Not yet sure why
1 parent 03dc1e8 commit 0e4d31e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Controller/FrontendPageController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function indexAction(Request $request)
148148
}
149149

150150
$updatedAt = $this->pageCache->get(sprintf('page_%s_created_at', $page->getId()));
151-
$cacheKey = 'page_'.$request->getLocale().$request->getPathInfo();
151+
$cacheKey = 'page_'.$request->getLocale().str_replace('/', '', $request->getPathInfo());
152152

153153
if ($updatedAt != $page->getSnapshotDate()) {
154154
$this->pageCache->delete($cacheKey);

0 commit comments

Comments
 (0)