method
cache
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::QueryCache::ClassMethods
cache(&block)public
Enable the query cache within the block if Active Record is configured. If it’s not, it will execute the given block.
cache(&block)Enable the query cache within the block if Active Record is configured. If it’s not, it will execute the given block.