forked from saurabh/orbit4-5
small fix for cache
This commit is contained in:
parent
1a0d257055
commit
5cdd1d11e9
|
@ -20,7 +20,7 @@ class OrbitObserver < Mongoid::Observer
|
|||
when 'Category'
|
||||
Rails.cache.delete_matched( /#{ document.module_app.key }/ )
|
||||
else
|
||||
Rails.cache.delete_matched( /#{model_module_hash[document.name.underscore.to_sym]}/ )
|
||||
Rails.cache.delete_matched( /#{model_module_hash[document.class.name.underscore.to_sym]}/ )
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue