Every search I’ve done on not caching something in Rails inevitably
turns up with “so you want to cache?”. No!
I’ve got a view that is asking @cart.empty? and answering true, when I
expect it to be false.
Calling out that cart in console yields false, as it should.
Adding and removing from the cart is done via Ajax, and the returned
response populates the view with the cart’s items.
Refreshing said page then tells me the cart is empty.
Is this a caching issue? I haven’t explicitly setup any caching. I’m
running in development with Thin (though I tried Mongrel with the same
results) on Rails 2.0.2.
Any ideas?