instance method clear_on_handler

Ruby on Rails 7.0.10

Since v6.1.7.10 Last seen in v7.0.10 Private

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 341
      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 341 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionHandling

Type at least 2 characters to search.

↑↓ navigate · open · esc close