mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
fix: expire default query cache upon scheduled episode publication
fix #81
This commit is contained in:
parent
7fdea63de7
commit
b72e7c8691
1 changed files with 7 additions and 1 deletions
|
|
@ -357,8 +357,14 @@ class PodcastModel extends Model
|
|||
];
|
||||
}
|
||||
|
||||
$secondsToNextUnpublishedEpisode = (new EpisodeModel())->getSecondsToNextUnpublishedEpisode($podcastId);
|
||||
|
||||
cache()
|
||||
->save($cacheName, $defaultQuery, DECADE);
|
||||
->save(
|
||||
$cacheName,
|
||||
$defaultQuery,
|
||||
$secondsToNextUnpublishedEpisode ? $secondsToNextUnpublishedEpisode : DECADE
|
||||
);
|
||||
}
|
||||
return $defaultQuery;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue