method
restore_query_cache_settings
restore_query_cache_settings(connection_id, enabled)
private
Hide source
# File activerecord/lib/active_record/query_cache.rb, line 49 def restore_query_cache_settings(connection_id, enabled) ActiveRecord::Base.connection_id = connection_id ActiveRecord::Base.connection.clear_query_cache ActiveRecord::Base.connection.disable_query_cache! unless enabled end