Merge pull request #53034 from skipkayhil/hm-eqc-allocation

Rm array allocation in {en,dis}able_query_cache!
This commit is contained in:
Eugene Kenny 2024-09-25 08:29:12 +01:00 committed by GitHub
commit 79056f9765
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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