Questions tagged [cache-money]

11 questions
10
votes
3 answers

cache_money for Rails 3

I've used various forks (mostly the ngmoco fork) of Nick Kallen's excellent cache_money for several Rails 2.3 based project, but we're now making the leap to Rails 3 which, thanks to the introduction of ActiveRelation, does not work with the popular…
Marc
  • 483
  • 2
  • 13
4
votes
2 answers

Use cache money only for a single model?

I want to use cache-money but I don't want to start automatically caching everything (I'm working with a large production app, terabytes of data etc). How do I use it for only the models that I specify? Right now I've got: #…
Sam
  • 1,014
  • 6
  • 8
4
votes
1 answer

How can I implement write through caching in Rails 3 similar to cache-money?

I recently inherited a Rails 2.3 application that I'm now trying to upgrade to Rails 3. Cache-money is an integral part of the application so I want to make sure we have the same functionality in place when we go to Rails 3. However, my research…
AngelCabo
  • 161
  • 2
  • 7
2
votes
4 answers

cache money ActiveRecord::MissingAttributeError

i keep on getting ActiveRecord::MissingAttributeError errors randomly everywhere in my program. i have passenger (30 instances) running with nginx. i don't have this problem in dev. When i remove cache money it works fine in production. this is the…
R Jaswal
  • 21
  • 2
2
votes
0 answers

Selectively caching models with cache_money

Instead of doing this in the cache_money.rb initializer class ActiveRecord::Base is_cached :repository => $cache end I want to be able to selectively cache only certain models (the reason being our User model breaks memcached because it's…
Kyle
  • 1,054
  • 2
  • 14
  • 27
2
votes
3 answers

cache_money 'nil.repository' error

I'm just trying out cache_money gem on an existing app and getting this error: NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.repository) I think I have my memached server configured…
Milan Novota
  • 15,506
  • 7
  • 54
  • 62
2
votes
2 answers

Getting Started with CacheMoney

I recently installed cache-money. After some difficulties getting memcached and cache-money set up, I thought I had it working. It cached the one query on my login page fine. I login, and go to my message index page and get this error: indices…
Matt Grande
  • 11,964
  • 6
  • 62
  • 89
1
vote
3 answers

Why am I getting this Cache-money error?

I followed the instructions found on the github page exactly. I would post some of my configuration but it matches what's found here on http://github.com/nkallen/cache-money/tree/master The error reads as follows: /!\ FAILSAFE /!\ Thu Mar 05…
Ben Crouse
  • 8,290
  • 5
  • 35
  • 50
1
vote
2 answers

How do I disable cache_money caching for certain ActiveRecord models

I tried doing the def index(*args); end; trick within the models I'd like cache_money to ignore, but to no avail.
Kyle
  • 1,054
  • 2
  • 14
  • 27
0
votes
1 answer

"no block given" errors with cache_money

i've inherited a site that in production is generating dozens of "no block given" exceptions every 5 minutes. the top of the stack trace is: vendor/gems/nkallen-cache-money-0.2.5/lib/cash/accessor.rb:42:in `add' …
emh
  • 1,279
  • 3
  • 15
  • 26
0
votes
2 answers

cache_money only writing to memcached on creates and updates, and seemingly never looking in the cache for index/show actions

I seem to be having some extremely odd cache_money interactions. When I am on the console, and I create a new instance of a class and save it I see the cache misses and cache stores on my memcached console output. Then when the create finishes I…
Shane Liebling
  • 248
  • 1
  • 3