Skip to content

Node.js based forum software built for the modern web

enabling view cache, since we require server restart on theme changes it doesn't hurt

psychobunnyb3940cd7cd9e
diff --git a/src/middleware/index.js b/src/middleware/index.js
index 1b42ab1f61..197f0a9c8d 100644
--- a/src/middleware/index.js
+++ b/src/middleware/index.js
@@ -189,6 +189,8 @@ module.exports = function(app, data) {
app.set('view engine', 'tpl');
app.set('views', viewsPath);
+ app.enable('view cache');
+
app.use(express.compress());
app.use(express.favicon(path.join(__dirname, '../../', 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico')));