Forum: Ruby on Rails cache-money Rails3?

A99ccfa84810c6016a9d3dc3429a2e00?d=identicon&s=25 Tony Primerano (primerano)
on 2010-08-31 19:50
(Received via mailing list)
It was awesome that Nick Kallen gave us Cache-Money but the
unfortunate thing is that people download his original version, have
issues and give up.

Is there any way to promote the http://github.com/ngmoco/cache-money
maintained fork to be what people see on rubygems.org?

Does anyone know if the ngmoco fork of cache-money works with Rails3?
I suspect it no longer works but I have not tried it yet.

If not what alternatives do people suggest?  The Rails3 Query cache
still only caches for a single request right?
A99ccfa84810c6016a9d3dc3429a2e00?d=identicon&s=25 Tony Primerano (primerano)
on 2010-09-07 17:51
(Received via mailing list)
It appears that cache-money will not work with Rails 3 as-is because
it hooks into 2 active record methods that no longer exist.  :-(

alias_method_chain :find_every, :cache
alias_method_chain :find_from_ids, :cache

With the whole ARel integration I wonder if hooking into the DB calls
just got harder or easier.   I haven't had a chance to dig for a
solution yet but if someone is already working on this please chime
in.  Thanks!
C1a727064fdf8f67f8224d4b565fc7d0?d=identicon&s=25 Orslumen O. (orslumen_o)
on 2011-09-27 20:02
Today I launched a new write-through-cache gem for Rails 3, see
https://github.com/orslumen/record-cache. It's works great in Rails
3.0.x and will support Rails 3.1.x in the near future.

The reason I built it, is because we were using cache money and recently
migrated to Rails 3. So chances are, it will also serve you well.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.