Skip to content

Commit

Permalink
Fixes #19506 - reset cache after CR update
Browse files Browse the repository at this point in the history
  • Loading branch information
ares committed May 10, 2017
1 parent f044c69 commit 9cfc346
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/concerns/compute_resource_caching.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module ComputeResourceCaching
extend ActiveSupport::Concern

included do
after_update :refresh_cache
end

def refresh_cache
cache.refresh
end
Expand Down

0 comments on commit 9cfc346

Please sign in to comment.