X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c38de8027ff70a650a2b01d12bd5eaf0e5307851..6aca6cfabf21da48567e8197457dae8785b7324d:/config/initializers/query_cache.rb?ds=sidebyside diff --git a/config/initializers/query_cache.rb b/config/initializers/query_cache.rb index 61a618bca..bb9c8b024 100644 --- a/config/initializers/query_cache.rb +++ b/config/initializers/query_cache.rb @@ -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