search for: disable_query_cach

Displaying 2 results from an estimated 2 matches for "disable_query_cach".

Did you mean: disable_query_cache
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
...1. I''ve tried a couple different approaches, both without any success. I was hoping some one could enlighten me on how to do that, exactly. The first approach I tried was to create an initializer (config/ initializer/active_record.rb) and include this code: ActiveRecord::Base.connection.disable_query_cache! (Documented at http://edgeapi.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/QueryCache.html without comments or examples, unsurprisingly). This doesn''t appear to work as I''m still seeing prepared statement caching going on in my log file: Started GET "/dashboard...
2013 Feb 18
6
How to clear ActiveRecord query cache on associations with dynamic table
In part of my application I''m using dynamic tables. I''m aware of the single thread conditions. I''ve tackled some caveats yet - will post a blog about it soon - but there''s one I need help with. Consider 2 models that are associated: Order and OrderLine where Order has many order_lines. Now we set the table names for them: