Loading app/Controllers/EpisodeCommentController.php +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ class EpisodeCommentController extends BaseController '_', array_filter([ 'page', "episode#{$this->episode->id}", "comment#{$this->comment->id}", service('request') ->getLocale(), Loading app/Models/EpisodeCommentModel.php +6 −0 Original line number Diff line number Diff line Loading @@ -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 app/Models/PlatformModel.php +5 −0 Original line number Diff line number Diff line Loading @@ -198,5 +198,10 @@ class PlatformModel extends Model // delete localized podcast page cache cache() ->deleteMatching("page_podcast#{$podcastId}*"); // delete post and episode comments pages cache cache() ->deleteMatching('page_post*'); cache() ->deleteMatching('page_episode#*'); } } Loading
app/Controllers/EpisodeCommentController.php +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ class EpisodeCommentController extends BaseController '_', array_filter([ 'page', "episode#{$this->episode->id}", "comment#{$this->comment->id}", service('request') ->getLocale(), Loading
app/Models/EpisodeCommentModel.php +6 −0 Original line number Diff line number Diff line Loading @@ -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
app/Models/PlatformModel.php +5 −0 Original line number Diff line number Diff line Loading @@ -198,5 +198,10 @@ class PlatformModel extends Model // delete localized podcast page cache cache() ->deleteMatching("page_podcast#{$podcastId}*"); // delete post and episode comments pages cache cache() ->deleteMatching('page_post*'); cache() ->deleteMatching('page_episode#*'); } }