instance method
uncached
Ruby on Rails 3.2.22.5
Since v2.3.18Signature
uncached(&block)
Disable the query cache within the block if Active Record is configured.
Parameters
-
blockblock
Source
# File activerecord/lib/active_record/query_cache.rb, line 17
def uncached(&block)
if ActiveRecord::Base.connected?
connection.uncached(&block)
else
yield
end
end
Defined in activerecord/lib/active_record/query_cache.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryCache::ClassMethods