Skip to content

Commit

Permalink
Update FrontendPageController.php
Browse files Browse the repository at this point in the history
Cache key was causing server 503 error. Not yet sure why
  • Loading branch information
ychadwick committed Oct 26, 2020
1 parent 03dc1e8 commit 0e4d31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/FrontendPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0e4d31e

Please sign in to comment.