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

Cache opt-out for 1 model #460

Open
drale2k opened this issue May 30, 2013 · 3 comments
Open

Cache opt-out for 1 model #460

drale2k opened this issue May 30, 2013 · 3 comments

Comments

@drale2k
Copy link

drale2k commented May 30, 2013

Hi,

i turned on caching for all my templates using config.cache_all_output = true. Now i have a model where i would like to turn of caching for it.

Is it possible when using that flag, to turn it off for 1 model and its templates?

@databyte
Copy link
Collaborator

It's currently not in the code but it could be possible to add. Maybe a cache false turns it off template by template?

@drale2k
Copy link
Author

drale2k commented May 30, 2013

That would be great i think. If you have like 30 templates but need to turn it off for only 1 or 2, that flag would be much better than having to turn off config.cache_all_output and then setting cache @objectfor all 38 templates.

@nesquena
Copy link
Owner

That's an interesting idea, would probably be a good addition in a future release.

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

No branches or pull requests

3 participants