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?
on 2010-08-31 19:50
on 2010-09-07 17:51
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!
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.