Module: Mongoid::QueryCache::Document

Defined in:
build/mongoid-6.1/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



277
278
279
# File 'build/mongoid-6.1/lib/mongoid/query_cache.rb', line 277

def reload
  QueryCache.uncached { super }
end