Method: ActiveRecord::ConnectionAdapters::QueryCache#cache
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb
#cache(&block) ⇒ Object
Enable the query cache within the block.
206 207 208 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb', line 206 def cache(&block) pool.enable_query_cache(&block) end |