Skip to content

Commit

Permalink
Ensure the /interviews cache is cleared on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed Jul 28, 2023
1 parent e8bfd58 commit 90906b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/changelog/cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ defmodule Changelog.Cache do
delete_prefix("/podcast")
end

if Podcast.is_changelog(episode.podcast) do
delete_prefix("/interviews")
end

if Episode.is_public(episode) do
delete_prefix(episode.podcast.slug)
delete_prefix("/master")
Expand Down

0 comments on commit 90906b2

Please sign in to comment.