mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 04:27:46 +02:00
fix: set cache expiration to next note publish to show note on publication date
fix episode, podcast and persons forms + episode scheduling
This commit is contained in:
parent
fbc0967caa
commit
0a66de3e6c
14 changed files with 117 additions and 44 deletions
|
|
@ -67,8 +67,15 @@ class PodcastController extends BaseController
|
|||
helper('form');
|
||||
return view('podcast/activity_authenticated', $data);
|
||||
}
|
||||
|
||||
$secondsToNextUnpublishedEpisode = (new EpisodeModel())->getSecondsToNextUnpublishedEpisode(
|
||||
$this->podcast->id,
|
||||
);
|
||||
|
||||
return view('podcast/activity', $data, [
|
||||
'cache' => DECADE,
|
||||
'cache' => $secondsToNextUnpublishedEpisode
|
||||
? $secondsToNextUnpublishedEpisode
|
||||
: DECADE,
|
||||
'cache_name' => $cacheName,
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue