Hey All !
I ended up browsing to Eric H.'s blog the other night, and found his
entry about the new cache_model and memcache-client.
Now, it looks like it’s “officially” out in the open:
http://weblog.rubyonrails.com/articles/2006/01/20/caching-models-with-memcached
In my application, I’ve been staying away from caching my models, and
instead just doing lookups based on different ID’s that I pass around.
I
heard that this was a good practice, as your sessioned models could
become
inconsisent (ie: if it was updated).
Now, it looks like this may be a moot point, as the cache_model
implements
ActiveRecord::Locking, and the memcache-client solves some performance
issues.
Is this the case ?
It would indeed be much easier to store some models in the session,
than
to do lookups all over the place, so was just wondering what other
people
think.
Let me know what you think, and forgive my ignorance if I any of my
statements above are incorrect
Dylan