method

restore_query_cache_settings

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActiveRecord::QueryCache
restore_query_cache_settings(connection_id, enabled) private

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 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
Register or log in to add new notes.