I was hoping that the Rails’ QueryCache might cache the ActiveRecord
objects it creates and not just the SQL result set, but some
experimentation shows that this is not the case. For example:
?> u = User.find(:first)
u = User.find(:first)
returns a clean copy of the object.
My question is, is there a way to cache the ActiveRecord objects as
well? I have read that their construction is time consuming. I found
the plugin ActiveRecordContext (http://github.com/dcadenas/
active_record_context) but it was last updated way back in 2007, so
I wasn’t sure it is the best thing to use (or if it even works with
the current Rails).