ActiveRecord::ConnectionAdapters::QueryCache::ConnectionPoolConfiguration Ruby on Rails 5.1.2 Module ActiveRecord::ConnectionAdapters::QueryCache::ConnectionPoolConfiguration activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb Methods D disable_query_cache! E enable_query_cache! N new Q query_cache_enabled Class Public methods new(*) Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 25 def initialize(*) super @query_cache_enabled = Concurrent::Map.new { false } end Instance Public methods disable_query_cache!() Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 35 def disable_query_cache! @query_cache_enabled.delete connection_cache_key(Thread.current) connection.disable_query_cache! if active_connection? end enable_query_cache!() Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 30 def enable_query_cache! @query_cache_enabled[connection_cache_key(Thread.current)] = true connection.enable_query_cache! if active_connection? end query_cache_enabled() Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 40 def query_cache_enabled @query_cache_enabled[connection_cache_key(Thread.current)] end