Module: Mongoid::QueryCache::Document

Defined in:
build/mongoid-master/lib/mongoid/query_cache.rb

Overview

Bypass the query cache when reloading a document.

Since:

  • 4.0.0

Instance Method Summary collapse

Instance Method Details

#reloadObject

Since:

  • 4.0.0



328
329
330
# File 'build/mongoid-master/lib/mongoid/query_cache.rb', line 328

def reload
  QueryCache.uncached { super }
end