instance method restore_query_cache_settings

Ruby on Rails 4.0.13

Since v4.0.13 Last seen in v4.2.11.3 Private — implementation detail, not part of the public API

Available in: v4.0.13 v4.1.16 v4.2.11.3

Signature

restore_query_cache_settings(connection_id, enabled)

No documentation comment.

Parameters

connection_id req
enabled req
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

Defined in activerecord/lib/active_record/query_cache.rb line 49 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::QueryCache

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close