Class: Workarea::BustSkuCache

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::CallbacksWorker, Sidekiq::Worker
Defined in:
app/workers/workarea/bust_sku_cache.rb

Instance Method Summary collapse

Instance Method Details

#perform(sku) ⇒ Object



12
13
14
# File 'app/workers/workarea/bust_sku_cache.rb', line 12

def perform(sku)
  Catalog::Product.find_for_update_by_sku(sku).each(&:touch)
end