* Create service for bust_organization * Create bust_podcast_episode_service * Add error spec to BustOrganization * Create bust_listings * Create bust_user service
18 lines
402 B
Ruby
18 lines
402 B
Ruby
module EdgeCache
|
|
class BustPodcastEpisode < Bust
|
|
def self.call(podcast_episode, path, podcast_slug)
|
|
return unless podcast_episode && path && podcast_slug
|
|
|
|
podcast_episode.purge
|
|
podcast_episode.purge_all
|
|
|
|
begin
|
|
bust(path)
|
|
bust("/#{podcast_slug}")
|
|
bust("/pod")
|
|
rescue StandardError => e
|
|
Rails.logger.warn(e)
|
|
end
|
|
end
|
|
end
|
|
end
|