* Refactor caching * Bring back old bust class * Refactor with PR feedback * Remove useless return values
13 lines
295 B
Ruby
13 lines
295 B
Ruby
module EdgeCache
|
|
class BustPage
|
|
def self.call(slug)
|
|
return unless slug
|
|
|
|
cache_bust = EdgeCache::Bust.new
|
|
cache_bust.call("/page/#{slug}")
|
|
cache_bust.call("/page/#{slug}?i=i")
|
|
cache_bust.call("/#{slug}")
|
|
cache_bust.call("/#{slug}?i=i")
|
|
end
|
|
end
|
|
end
|