123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::QueryCache

Overview

=========================

Class Method Summary

Class Method Details

.disable_for_current_unit_of_work!

This method is for internal use only.
[ GitHub ]

  
# File 'activerecord/lib/active_record/query_cache.rb', line 43

def self.disable_for_current_unit_of_work! # :nodoc:
  ConnectionAdapters::QueryCache.enabled_by_default = false
  ConnectionAdapters::ConnectionPool.each_used_pool(&:reset_query_cache!)
end

.install_executor_hooks(executor = ActiveSupport::Executor)

This method is for internal use only.
[ GitHub ]

  
# File 'activerecord/lib/active_record/query_cache.rb', line 75

def self.install_executor_hooks(executor = ActiveSupport::Executor) # :nodoc:
  executor.register_hook(ExecutorHooks)
end