We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cca2e3 commit c5d02f8Copy full SHA for c5d02f8
app/observers/observist.rb
@@ -18,7 +18,7 @@ def self.expire(*args)
18
when ActiveSupport::Cache::MemCacheStore
19
Rails.cache.instance_variable_get(:@data).flush_all
20
when ActiveSupport::Cache::FileStore
21
- Rails.cache.delete_matched(pattern)
+ Rails.cache.delete_matched(pattern) rescue nil
22
else
23
raise NotImplementedError, "Don't know how to expire cache: #{Rails.cache.class.name}"
24
end
0 commit comments