How do you disable the query cache in rails 4.x? It appears that wrapping my queries in model.uncached {} does not stop the query cache. Is there another setting?
Ah, it appears the answer is to add the following to your application.rb
config.middleware.delete "ActiveRecord::QueryCache"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With