* Create service for bust_organization * Create bust_podcast_episode_service * Add error spec to BustOrganization * Create bust_listings * Create bust_user service
16 lines
453 B
Ruby
16 lines
453 B
Ruby
module EdgeCache
|
|
class BustListings < Bust
|
|
def self.call(listing)
|
|
return unless listing
|
|
|
|
# we purge all listings as it's the wanted behavior with the following URL purging
|
|
listing.purge_all
|
|
|
|
bust("/listings")
|
|
bust("/listings?i=i")
|
|
bust("/listings/#{listing.category}/#{listing.slug}")
|
|
bust("/listings/#{listing.category}/#{listing.slug}?i=i")
|
|
bust("/listings/#{listing.category}")
|
|
end
|
|
end
|
|
end
|