mongoid-cached-json icon indicating copy to clipboard operation
mongoid-cached-json copied to clipboard

Is it possible to disable caching for a single model?

Open jstejada opened this issue 10 years ago • 1 comments

I like the json versioning and properties features, but I don't really need the caching for one of my models (for now). So is it possible to disable caching for a single model? Is it viable? What are your thoughts?

jstejada avatar Jul 07 '15 19:07 jstejada

I think it's viable, I would track down where we use Mongoid::CachedJson.config.disable_caching and extend the DSL to be able to say something like disable_caching: true. Would take a PR with this.

dblock avatar Jul 08 '15 15:07 dblock