mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 11:16:43 +02:00
fix(cache): add locale for podcast and episode pages + clear some persisting cache in models
fixes #42, #61
This commit is contained in:
parent
a354940e5e
commit
9cec8a81cc
6 changed files with 209 additions and 106 deletions
|
|
@ -58,15 +58,13 @@ class Podcast extends BaseController
|
|||
"podcast{$this->podcast->id}",
|
||||
$yearQuery,
|
||||
$seasonQuery ? 'season' . $seasonQuery : null,
|
||||
service('request')->getLocale(),
|
||||
])
|
||||
);
|
||||
|
||||
if (!($found = cache($cacheName))) {
|
||||
// The page cache is set to a decade so it is deleted manually upon podcast update
|
||||
// $this->cachePage(DECADE);
|
||||
$episodeModel = new EpisodeModel();
|
||||
|
||||
// Build navigation array
|
||||
$episodeModel = new EpisodeModel();
|
||||
$years = $episodeModel->getYears($this->podcast->id);
|
||||
$seasons = $episodeModel->getSeasons($this->podcast->id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue