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 16:45:09 -0500 2009
Status: 500 Internal Server Error
undefined method `indices' for nil:...
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:
# initializers/cache_money.rb
require 'cache_money'
config = (cfg = YAML.load(IO.read(File.join(RAILS_ROOT, "con...
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 delegated to @cache_config.indices, but @cache_config is nil: Slug(id: integer, name: strin...
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 properly.
I'm using Rails 2.2.2
EDIT:
Stack trace:
NoMethodError (You have a nil object when ...
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 generally too large to be serialized properly).
class User < AR::Base
is_cached :repository ...
I tried doing the def index(*args); end; trick within the models I'd like cache_money to ignore, but to no avail.
...
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 see a bunch of cache deletions.
If I then try to do any kind of find for the newly created...
Hi, 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 error msg:
ActiveRecord::MissingAttributeError (missing attribute: deposit_amount):
...
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'
vendor/gems/nkallen-cache-money-0.2.5/lib/cash/accessor.rb:33:in `get'
vendor/gems/nkallen-cache-money-0.2.5/lib/cas...
I just need read caching not write caching. Getting a ton of errors like:
Key {"lock/Genlog:1/id/3565042"=>"mc2.ec2.northscale.net:11211:8"} /home/slugs/152245_11e6812_6833/mnt/.gems/gems/memcached-northscale-0.19.5.3/lib/memcached/memcached.rb:604:in `check_return_code'
Thanks!
...
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 forks of cache_money.
Is there a fork of cache_money, or an equivalent write-through ca...
beloved s.o. (lowercase intended; indented, and, subsequently dedented),
I have a long-term project in mind, and when it's done I will definitely show it to you.
In the mean-time, as the title suggests, I will be attempting (nay, succeeding! think positively, right?!) at creating an internet-based company.
Essentially, I hope to utili...