docbrown/app/services/edge_cache/bust_page.rb
Alex 8598ed090e
Create services for busting pages, tags, events, and podcasts (#11812)
* Create bust_page service and spec

* Specify spec with .once

* Create bust_tag service and spec

* Create bust_event service and spec

* Create bust_podcast service and spec
2020-12-09 10:37:02 -05:00

12 lines
219 B
Ruby

module EdgeCache
class BustPage < Bust
def self.call(slug)
return unless slug
bust("/page/#{slug}")
bust("/page/#{slug}?i=i")
bust("/#{slug}")
bust("/#{slug}?i=i")
end
end
end