Method: ActiveRecord::QueryCache.run
- Defined in:
- activerecord/lib/active_record/query_cache.rb
.run ⇒ Object
37 38 39 40 41 42 |
# File 'activerecord/lib/active_record/query_cache.rb', line 37 def self.run ActiveRecord::Base.connection_handler.each_connection_pool.reject(&:query_cache_enabled).each do |pool| next if pool.db_config&.query_cache == false pool.enable_query_cache! end end |