Forum: Ruby on Rails cache-money Rails3?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0c79b63059847ba4277d0d406e7c9afb?d=identicon&s=25 Tony P. (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
maintained fork to be what people see on

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?
0c79b63059847ba4277d0d406e7c9afb?d=identicon&s=25 Tony P. (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!
031af49ab885022f630ab194f42724b6?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 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.
This topic is locked and can not be replied to.