Re: [Rails] How to clear ActiveRecord query cache on associations with dynamic table
Unfortunately not. We redesigned the whole concept. Certainly not ideal, but that was the only way around.
I did not try it out in Rails 4 though which might be worth a try.
Good luck!
Op 23 jul. 2013, om 17:51 heeft Arnaud M. <lists@ruby-forum.com> het volgende geschreven:
> javinto wrote in post #1097693:
>> Unfortunately the Model.uncached block does not work.
>>
>> I tried ActiveRecord::Base.connection.disable_query_cache!
>> and
>> ActiveRecord::Base.connection.clear_query_cache
>> without any luck.
>>
>> So, it's not the query cache. It looks like some sort of association
>> cache.
>> Anyone suggestions?
>>
>>
>> Op maandag 18 februari 2013 22:27:24 UTC+1 schreef javinto het volgende:
>
> It seems I have the exact same problem. Have you found a solution?
>
> Thanks for your help!
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/SqcZ8wVNIY0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0c67962058dc57acff243abe7858e041%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/E5961469-B20F-4EAA-9791-3786CD164C96%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home