Trying caching in express-handlebars

This commit is contained in:
Kasper Rynning-Tønnesen
2017-09-11 10:35:51 +02:00
parent f1f374763c
commit b79e38af34

View File

@@ -17,7 +17,7 @@ var mongo_db_cred = {config: 'mydb'};
app.engine('handlebars', hbs.engine);
//hbs.loadPartials(publicPath + "/layouts/");
app.set('view engine', 'handlebars');
app.enable('view cache');
app.set('views', publicPath);
try{