Class: CacheKeeper::RefreshAllJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/cache_keeper/refresh_all_job.rb

Instance Method Summary collapse

Instance Method Details

#performObject



4
5
6
7
8
9
10
# File 'app/jobs/cache_keeper/refresh_all_job.rb', line 4

def perform
  CacheKeeper.manager.cached_methods.autorefreshed.each do |cached_method|
    next unless cached_method.stale?

    cached_method.refresh_later
  end
end