method
run
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::QueryCache
run()public
No documentation available.
# File activerecord/lib/active_record/query_cache.rb, line 26
def self.run
caching_pool = ActiveRecord::Base.connection_pool
caching_was_enabled = caching_pool.query_cache_enabled
caching_pool.enable_query_cache!
[caching_pool, caching_was_enabled]
end