instance method
query_cache
Ruby on Rails 8.0.5.1
Since v7.2.3.2Signature
query_cache()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 201
def query_cache
if @pinned && @owner != ActiveSupport::IsolatedExecutionState.context
# With transactional tests, if the connection is pinned, any thread
# other than the one that pinned the connection need to go through the
# query cache pool, so each thread get a different cache.
pool.query_cache
else
@query_cache
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb line 201
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::QueryCache