Node.js based forum software built for the modern web
removed cacheStaticFiles
barisusaklid60ab3c74c2f
diff --git a/src/webserver.js b/src/webserver.jsindex 3e14ac2a33..9fbe6f0ef9 100644--- a/src/webserver.js+++ b/src/webserver.js@@ -94,6 +94,11 @@ function setupExpressApp(app) {app.enable('view cache');+ if (global.env !== 'development') {+ app.enable('cache');+ app.enable('minification');+ }+app.use(compression());setupFavicon(app);@@ -130,7 +135,6 @@ function setupFavicon(app) {}}-function setupCookie() {var cookie = {maxAge: 1000 * 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 14)@@ -152,15 +156,6 @@ function setupCookie() {return cookie;}-function cacheStaticFiles() {- if (global.env === 'development') {- return;- }-- app.enable('cache');- app.enable('minification');-}-function initializeNodeBB(callback) {var skipJS;var fromFile = nconf.get('from-file') || '';