Skip to content

Commit

Permalink
Remove QueryCache.clear_cache from purge
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurnn committed Jan 9, 2014
1 parent 5daace0 commit 7e0e044
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/mongoid/config.rb
Expand Up @@ -169,7 +169,6 @@ def override_session(name)
#
# @since 2.0.2
def purge!
Mongoid::QueryCache.clear_cache
Sessions.default.collections.each do |collection|
collection.drop
end and true
Expand Down
1 change: 1 addition & 0 deletions spec/mongoid/query_cache_spec.rb
Expand Up @@ -3,6 +3,7 @@
describe Mongoid::QueryCache do

around do |spec|
Mongoid::QueryCache.clear_cache
Mongoid::QueryCache.cache { spec.run }
end

Expand Down

0 comments on commit 7e0e044

Please sign in to comment.