instance method clear_on_handler

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v7.0.10 Private — implementation detail, not part of the public API

Available in: v6.1.7.10 v7.0.10

Signature

clear_on_handler(handler)

No documentation comment.

Parameters

handler req
Source
# File activerecord/lib/active_record/connection_handling.rb, line 355
      def clear_on_handler(handler)
        handler.all_connection_pools.each do |pool|
          pool.connection.clear_query_cache if pool.active_connection?
        end
      end

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

Defined in ActiveRecord::ConnectionHandling

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