method

restore_query_cache_settings

rails latest stable - Class: ActiveRecord::QueryCache

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

restore_query_cache_settings(connection_id, enabled)
private

No documentation available.

# 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