method

run

rails latest stable - Class: ActiveRecord::QueryCache::ExecutorHooks

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

run()
public

No documentation available.

# File activerecord/lib/active_record/query_cache.rb, line 43
      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