Make query cache disabling work again
authorTom Hughes <tom@compton.nu>
Sat, 26 Nov 2011 16:01:57 +0000 (16:01 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 26 Nov 2011 16:01:57 +0000 (16:01 +0000)
config/initializers/query_cache.rb

index 61a618b..bb9c8b0 100644 (file)
@@ -1,12 +1 @@
-if defined?(ActiveRecord::ConnectionAdaptors::QueryCache)
-  module ActiveRecord
-    module ConnectionAdapters
-      module QueryCache
-        private
-          def cache_sql(sql)
-         yield
-          end
-      end
-    end
-  end
-end
+Rails.configuration.middleware.delete ActiveRecord::QueryCache