mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 07:19:03 +02:00
fix(pages): add locale to page cache
This commit is contained in:
parent
8721719cd7
commit
8f999ce2f7
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue