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 7, 2014
1 parent 9e718ab commit f4c74c6
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 f4c74c6

Please sign in to comment.