Flowdock
method

run

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ActiveRecord::QueryCache
run() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/query_cache.rb, line 28
    def self.run
      pools = []

      if ActiveRecord::Base.legacy_connection_handling
        ActiveRecord::Base.connection_handlers.each do |key, handler|
          pools.concat(handler.connection_pool_list.reject { |p| p.query_cache_enabled }.each { |p| p.enable_query_cache! })
        end
      else
        pools.concat(ActiveRecord::Base.connection_handler.all_connection_pools.reject { |p| p.query_cache_enabled }.each { |p| p.enable_query_cache! })
      end

      pools
    end
Register or log in to add new notes.