diff --git a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb index 64e87867e55..dfa4577b307 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb @@ -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