mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-06 18:31:05 +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
|
public function index(): string
|
||||||
{
|
{
|
||||||
$cacheName = "page-{$this->page->slug}";
|
$locale = service('request')
|
||||||
|
->getLocale();
|
||||||
|
$cacheName = "page-{$this->page->slug}-{$locale}";
|
||||||
if (! ($found = cache($cacheName))) {
|
if (! ($found = cache($cacheName))) {
|
||||||
$data = [
|
$data = [
|
||||||
'metatags' => get_page_metatags($this->page),
|
'metatags' => get_page_metatags($this->page),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user