]> git.openstreetmap.org Git - rails.git/commitdiff
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 61a618bca7d7b6656533b7a60700c3f4e9e1cec6..bb9c8b0245854243a3a047c887eaf2134696ebb5 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