cache_money only writing to memcached on creates and updates, and seemingly never looking in the cac

Posted by Shane Liebling on Stack Overflow See other posts from Stack Overflow or by Shane Liebling
Published on 2009-10-07T21:51:11Z Indexed on 2010/03/11 19:04 UTC
Read the original article Hit count: 497

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 object (or any other objects for that matter) I never see any cache access.

This is highly confusing. I could kind of understand if all finds never hit the cache (though that in and of itself would be an issue requiring investigation), but finds do seem to hit the cache when the object is being created (checking for associations and such).

Anyone have this experience in the past at all? Any thoughts?

AFAIK there isn't really much in the way of configuration options for cache_money, and it certainly doesn't seem like there are any that would be on by default and be creating these kinds of symptoms.

My cache_money config is basically straight out of the docs.

Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about memcached