Skip to content

Commit 73e57e4

Browse files
committed
Document query cache invalidation for raw_connection
1 parent 744b671 commit 73e57e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

activerecord/lib/active_record/connection_adapters/abstract_adapter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,10 @@ def clean! # :nodoc:
798798
#
799799
# This is useful for when you need to call a proprietary method such as
800800
# PostgreSQL's lo_* methods.
801+
#
802+
# Active Record cannot track if the database is getting modified using
803+
# this client. If that is the case, generally you'll want to invalidate
804+
# the query cache using `ActiveRecord::Base.clear_query_cache`.
801805
def raw_connection
802806
with_raw_connection do |conn|
803807
disable_lazy_transactions!

0 commit comments

Comments
 (0)