class method
self.run
Ruby on Rails 7.0.10
Since v5.0.7.2 Last seen in v8.0.5.1Signature
self.run()
No documentation comment.
Source
# File activerecord/lib/active_record/query_cache.rb, line 28
def self.run
pools = []
if ActiveRecord.legacy_connection_handling
ActiveRecord::Base.connection_handlers.each do |key, handler|
pools.concat(handler.connection_pool_list.reject { |p| p.query_cache_enabled }.each { |p| p.enable_query_cache! })
end
else
pools.concat(ActiveRecord::Base.connection_handler.all_connection_pools.reject { |p| p.query_cache_enabled }.each { |p| p.enable_query_cache! })
end
pools
end
Defined in activerecord/lib/active_record/query_cache.rb line 28
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryCache