-
Notifications
You must be signed in to change notification settings - Fork 383
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
Production view cache #261
Comments
https://github.com/ericf/express-handlebars#template-caching Try passing |
It doesn't seem right in my opinion. I just wanna disable it for whole app at once, instead of passing a prop to each render call, also it's really uncomfortable in case of a big app. Documentation even says that is easiest way to control template/view caching and i would like to do it so. |
Hi there. I have two question regarding cache in production. Ask it here because found the question similar to myself.
|
Yes caching is default behavior |
Thanks for response. So please, how to avoid page cache while still taking advantage of this default caching behavior? |
|
Yeah, but then It reads the template from disk for each request. This is a test with
P.S. Clarification: Readme has already been read and question was regarding production mode. |
I'm confused with template caching, i've disabled it with
app.disable('view cache');
.In development everything is fine, but in production templates are still cached anyways. How can i disable it?
The text was updated successfully, but these errors were encountered: