Loading app/Controllers/CreditsController.php +6 −2 Original line number Diff line number Diff line Loading @@ -20,9 +20,12 @@ class CreditsController extends BaseController { $locale = service('request') ->getLocale(); $allPodcasts = (new PodcastModel())->findAll(); $cacheName = "page_credits_{$locale}"; $cacheName = implode( '_', array_filter(['page', 'credits', $locale, can_user_interact() ? 'authenticated' : null]), ); if (! ($found = cache($cacheName))) { $page = new Page([ 'title' => lang('Person.credits', [], $locale), Loading @@ -30,6 +33,7 @@ class CreditsController extends BaseController 'content_markdown' => '', ]); $allPodcasts = (new PodcastModel())->findAll(); $allCredits = (new CreditModel())->findAll(); // Unlike the carpenter, we make a tree from a table: Loading app/Controllers/EpisodeCommentController.php +1 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ class EpisodeCommentController extends BaseController "comment#{$this->comment->id}", service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading app/Controllers/MapController.php +11 −3 Original line number Diff line number Diff line Loading @@ -17,9 +17,17 @@ class MapController extends BaseController { public function index(): string { $locale = service('request') ->getLocale(); $cacheName = "page_map_{$locale}"; $cacheName = implode( '_', array_filter([ 'page', 'map', service('request') ->getLocale(), can_user_interact() ? 'authenticated' : null, ]), ); if (! ($found = cache($cacheName))) { $found = view('pages/map', [], [ 'cache' => DECADE, Loading app/Controllers/PageController.php +11 −3 Original line number Diff line number Diff line Loading @@ -37,9 +37,17 @@ class PageController extends BaseController public function index(): string { $locale = service('request') ->getLocale(); $cacheName = "page-{$this->page->slug}-{$locale}"; $cacheName = implode( '_', array_filter([ 'page', $this->page->slug, service('request') ->getLocale(), can_user_interact() ? 'authenticated' : null, ]), ); if (! ($found = cache($cacheName))) { $data = [ 'metatags' => get_page_metatags($this->page), Loading app/Controllers/PodcastController.php +3 −3 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class PodcastController extends BaseController 'activity', service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading Loading @@ -122,7 +122,7 @@ class PodcastController extends BaseController 'about', service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading Loading @@ -188,7 +188,7 @@ class PodcastController extends BaseController $seasonQuery ? 'season' . $seasonQuery : null, service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading Loading
app/Controllers/CreditsController.php +6 −2 Original line number Diff line number Diff line Loading @@ -20,9 +20,12 @@ class CreditsController extends BaseController { $locale = service('request') ->getLocale(); $allPodcasts = (new PodcastModel())->findAll(); $cacheName = "page_credits_{$locale}"; $cacheName = implode( '_', array_filter(['page', 'credits', $locale, can_user_interact() ? 'authenticated' : null]), ); if (! ($found = cache($cacheName))) { $page = new Page([ 'title' => lang('Person.credits', [], $locale), Loading @@ -30,6 +33,7 @@ class CreditsController extends BaseController 'content_markdown' => '', ]); $allPodcasts = (new PodcastModel())->findAll(); $allCredits = (new CreditModel())->findAll(); // Unlike the carpenter, we make a tree from a table: Loading
app/Controllers/EpisodeCommentController.php +1 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ class EpisodeCommentController extends BaseController "comment#{$this->comment->id}", service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading
app/Controllers/MapController.php +11 −3 Original line number Diff line number Diff line Loading @@ -17,9 +17,17 @@ class MapController extends BaseController { public function index(): string { $locale = service('request') ->getLocale(); $cacheName = "page_map_{$locale}"; $cacheName = implode( '_', array_filter([ 'page', 'map', service('request') ->getLocale(), can_user_interact() ? 'authenticated' : null, ]), ); if (! ($found = cache($cacheName))) { $found = view('pages/map', [], [ 'cache' => DECADE, Loading
app/Controllers/PageController.php +11 −3 Original line number Diff line number Diff line Loading @@ -37,9 +37,17 @@ class PageController extends BaseController public function index(): string { $locale = service('request') ->getLocale(); $cacheName = "page-{$this->page->slug}-{$locale}"; $cacheName = implode( '_', array_filter([ 'page', $this->page->slug, service('request') ->getLocale(), can_user_interact() ? 'authenticated' : null, ]), ); if (! ($found = cache($cacheName))) { $data = [ 'metatags' => get_page_metatags($this->page), Loading
app/Controllers/PodcastController.php +3 −3 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class PodcastController extends BaseController 'activity', service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading Loading @@ -122,7 +122,7 @@ class PodcastController extends BaseController 'about', service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading Loading @@ -188,7 +188,7 @@ class PodcastController extends BaseController $seasonQuery ? 'season' . $seasonQuery : null, service('request') ->getLocale(), can_user_interact() ? '_authenticated' : null, can_user_interact() ? 'authenticated' : null, ]), ); Loading