Tuesday, August 9, 2011

Re: [Rails] Re: How can I disable Rails 3.1's ActiveRecord Query Caching?

On Mon, Aug 8, 2011 at 6:46 PM, Phoenix Rising <polarisrising@gmail.com> wrote:
> Thanks again for your help, Hassan.  Unfortunately it's still caching
> queries.  I've tried both approaches in this thread in isolation, and
> together, and regardless, the query cache is still being used.
>
> First, I created an initializer: config/initializers/active_record.rb
> with ActiveRecord::Base.connection.disable_query_cache! inside it, and
> then used config.middleware.delete ActiveRecord::QueryCache in config/
> environments/development.rb inside the configure block.

I haven't played with 3.1 at all yet, so I'm swinging in the dark but --
does `rake middleware` list QueryCache or no?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate