mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #41046 from eileencodes/dont-check-if-qc-is-enabled
Don't check if QC is enabled
This commit is contained in:
commit
c97f1f195f
1 changed files with 2 additions and 2 deletions
|
@ -30,10 +30,10 @@ module ActiveRecord
|
|||
|
||||
if ActiveRecord::Base.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! })
|
||||
pools.concat(handler.connection_pool_list.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! })
|
||||
pools.concat(ActiveRecord::Base.connection_handler.all_connection_pools.each { |p| p.enable_query_cache! })
|
||||
end
|
||||
|
||||
pools
|
||||
|
|
Loading…
Reference in a new issue