Forum: Ruby on Rails Are associations cached with MemoryStore?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cabf735ce7b8b4471ef46ea54f71832d?d=identicon&s=25 Michael Mahemoff (Guest)
on 2011-12-30 13:30
(Received via mailing list)
Having trouble with MemoryStore cache. I store an object with
association:

post = Post.find_by_id(id), :includes => :tags
Post.cache.write(key, post)

When I retrieve this Rails.cache.read(key), the model is certainly
there, but the SQL dump indicates the associations (tags) still loaded
from the database. Anyone know how I can store and retrieve the
associations?
This topic is locked and can not be replied to.