Module: Mongoid::QueryCache::Document

Defined in:
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



276
277
278
# File 'lib/mongoid/query_cache.rb', line 276

def reload
  QueryCache.uncached { super }
end