Class: Workarea::BustNavigationCache

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

Instance Method Summary collapse

Instance Method Details

#perform(id) ⇒ Object



12
13
14
15
16
# File 'app/workers/workarea/bust_navigation_cache.rb', line 12

def perform(id)
  taxon = Navigation::Taxon.find(id)
  taxon.ancestors.each(&:touch)
  taxon.descendants.each(&:touch)
end