Frederick Cheung wrote:
> On Aug 11, 11:07�am, Robert Walker <[email protected]> wrote:
>> I am assuming that "processed?" reads from a column in your
>> pending_orders table. If something in your application changes that
>> value then the query cache should be cleared automatically. However, if
>> that database change were to happen outside of your Rails application I
>> could see that your code could end up blocking forever.
>>
> It's more than that - the cache is in memory, so the cache won't be
> cleared if a different rails instances touches the data

I actually misstated that, sorry. I should have said anything outside 
the current Rails instance (including other Rails instances).

Thanks Frederick for the clarification. And also for the uncached 
solution. I wasn't actually aware of that, but it's definitely good to 
know.
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to