# cache-money Rails3?

**URL:** <https://discuss.rubyonrails.org/t/cache-money-rails3/54027>\
**Category:** rubyonrails-talk\
**Created:** [August 31, 2010, 5:49pm UTC](https://discuss.rubyonrails.org/t/cache-money-rails3/54027 "2010-08-31T17:49:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony5](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@Tony5](https://discuss.rubyonrails.org/u/Tony5)\
**Post date:** [August 31, 2010, 5:49pm UTC](https://discuss.rubyonrails.org/t/cache-money-rails3/54027/1 "2010-08-31T17:49:52Z")

</div>

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 [GitHub - ngmoco/cache-money: A Write-Through Cacheing Library for ActiveRecord](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?

---

<div class="post-metadata">

**Author:** ![Tony5](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@Tony5](https://discuss.rubyonrails.org/u/Tony5)\
**Post date:** [September 7, 2010, 3:50pm UTC](https://discuss.rubyonrails.org/t/cache-money-rails3/54027/2 "2010-09-07T15:50:18Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 27, 2011, 6:02pm UTC](https://discuss.rubyonrails.org/t/cache-money-rails3/54027/3 "2011-09-27T18:02:19Z")

</div>

Today I launched a new write-through-cache gem for Rails 3, see [https://github.com/orslumen/record-cache](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.
