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:
Yassine Doghri 2022-02-24 16:08:24 +00:00
commit f7c3e5bf4a
3 changed files with 12 additions and 0 deletions

View file

@ -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#*');
}
}