mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(pages): add locale to page cache
This commit is contained in:
parent
8721719cd7
commit
8f999ce2f7
@ -37,7 +37,9 @@ class PageController extends BaseController
|
||||
|
||||
public function index(): string
|
||||
{
|
||||
$cacheName = "page-{$this->page->slug}";
|
||||
$locale = service('request')
|
||||
->getLocale();
|
||||
$cacheName = "page-{$this->page->slug}-{$locale}";
|
||||
if (! ($found = cache($cacheName))) {
|
||||
$data = [
|
||||
'metatags' => get_page_metatags($this->page),
|
||||
|
Loading…
x
Reference in New Issue
Block a user