Module ActiveRecord::ConnectionAdapters::QueryCache
In: lib/active_record/connection_adapters/abstract/query_cache.rb

Methods

Attributes

query_cache  [R] 
query_cache_enabled  [R] 

Public Class methods

Public Instance methods

Enable the query cache within the block.

Clears the query cache.

One reason you may wish to call this method explicitly is between queries that ask the database to randomize results. Otherwise the cache would see the same SQL query and repeatedly return the same result each time, silently undermining the randomness you were expecting.

Disable the query cache within the block.

[Validate]