mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
fix(cache): delete posts and comments pages cache when updating platform links
remove cache when adding comment and replies as well fixes #169
This commit is contained in:
parent
5bcdfebe64
commit
f7c3e5bf4a
3 changed files with 12 additions and 0 deletions
|
|
@ -122,6 +122,12 @@ class EpisodeCommentModel extends UuidModel
|
|||
|
||||
$this->db->transComplete();
|
||||
|
||||
// delete podcast and episode pages cache
|
||||
cache()
|
||||
->deleteMatching('page_podcast#' . $comment->episode->podcast_id . '*');
|
||||
cache()
|
||||
->deleteMatching('page_episode#' . $comment->episode_id . '*');
|
||||
|
||||
return $newCommentId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue