* Refactored Pages::BustCacheJob to Pages::BustCacheWorker * Removed Pages::BustCacheJob and specs Co-authored-by: Edward Tam <edward6882990@gmail.com>
13 lines
266 B
Ruby
13 lines
266 B
Ruby
module Pages
|
|
class BustCacheWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options queue: :high_priority, retry: 10
|
|
|
|
def perform(slug, cache_buster = "CacheBuster")
|
|
return if slug.blank?
|
|
|
|
cache_buster.constantize.bust_page(slug)
|
|
end
|
|
end
|
|
end
|