Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to disable caching for a single model? #18

Open
jstejada opened this issue Jul 7, 2015 · 1 comment
Open

Is it possible to disable caching for a single model? #18

jstejada opened this issue Jul 7, 2015 · 1 comment
Labels

Comments

@jstejada
Copy link

jstejada commented Jul 7, 2015

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?

@dblock dblock added the feature label Jul 8, 2015
@dblock
Copy link
Collaborator

dblock commented Jul 8, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants