X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b9c9d6c1aafdd60c72b54345b4d2dc94317298a0..fb70a89a36e42a7e439e4e99e449a109d0c3cd86:/config/initializers/query_cache.rb 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