Skip to content

Commit

Permalink
Document query cache invalidation for raw_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Apr 25, 2023
1 parent 744b671 commit 73e57e4
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -798,6 +798,10 @@ def clean! # :nodoc:
#
# This is useful for when you need to call a proprietary method such as
# PostgreSQL's lo_* methods.
#
# Active Record cannot track if the database is getting modified using
# this client. If that is the case, generally you'll want to invalidate
# the query cache using `ActiveRecord::Base.clear_query_cache`.
def raw_connection
with_raw_connection do |conn|
disable_lazy_transactions!
Expand Down

0 comments on commit 73e57e4

Please sign in to comment.