Project

General

Profile

« Previous | Next » 

Revision 67428d62

Added by Marek Hulán about 7 years ago

Fixes #19506 - reset cache after CR update

View differences:

app/models/concerns/compute_resource_caching.rb
module ComputeResourceCaching
extend ActiveSupport::Concern
included do
after_update :refresh_cache_ignoring_errors, :if => proc { |cr| cr.caching_enabled? }
end
def refresh_cache_ignoring_errors
refresh_cache
true
end
def refresh_cache
cache.refresh
end

Also available in: Unified diff