X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8af14faa49deed681fa835dd6bd3f77316b44a55..0f83081847a2dcd232dca43d1fe189769fa87b5f:/config/initializers/query_cache.rb?ds=inline diff --git a/config/initializers/query_cache.rb b/config/initializers/query_cache.rb index 92372faf3..bb9c8b024 100644 --- a/config/initializers/query_cache.rb +++ b/config/initializers/query_cache.rb @@ -1,12 +1 @@ -if defined?(ActionRecord::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