mirror of https://github.com/rails/rails
Merge pull request #53034 from skipkayhil/hm-eqc-allocation
Rm array allocation in {en,dis}able_query_cache!
This commit is contained in:
commit
79056f9765
|
@ -157,11 +157,13 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def enable_query_cache!
|
||||
query_cache.enabled, query_cache.dirties = true, true
|
||||
query_cache.enabled = true
|
||||
query_cache.dirties = true
|
||||
end
|
||||
|
||||
def disable_query_cache!
|
||||
query_cache.enabled, query_cache.dirties = false, true
|
||||
query_cache.enabled = false
|
||||
query_cache.dirties = true
|
||||
end
|
||||
|
||||
def query_cache_enabled
|
||||
|
|
Loading…
Reference in New Issue