mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Trying caching in express-handlebars
This commit is contained in:
@@ -17,7 +17,7 @@ var mongo_db_cred = {config: 'mydb'};
|
|||||||
app.engine('handlebars', hbs.engine);
|
app.engine('handlebars', hbs.engine);
|
||||||
//hbs.loadPartials(publicPath + "/layouts/");
|
//hbs.loadPartials(publicPath + "/layouts/");
|
||||||
app.set('view engine', 'handlebars');
|
app.set('view engine', 'handlebars');
|
||||||
|
app.enable('view cache');
|
||||||
app.set('views', publicPath);
|
app.set('views', publicPath);
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|||||||
Reference in New Issue
Block a user