removed cacheStaticFiles

v1.18.x
barisusakli 9 years ago
parent b0b6c66f77
commit d60ab3c74c

@ -94,6 +94,11 @@ function setupExpressApp(app) {
app.enable('view cache'); app.enable('view cache');
if (global.env !== 'development') {
app.enable('cache');
app.enable('minification');
}
app.use(compression()); app.use(compression());
setupFavicon(app); setupFavicon(app);
@ -130,7 +135,6 @@ function setupFavicon(app) {
} }
} }
function setupCookie() { function setupCookie() {
var cookie = { var cookie = {
maxAge: 1000 * 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 14) maxAge: 1000 * 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 14)
@ -152,15 +156,6 @@ function setupCookie() {
return cookie; return cookie;
} }
function cacheStaticFiles() {
if (global.env === 'development') {
return;
}
app.enable('cache');
app.enable('minification');
}
function initializeNodeBB(callback) { function initializeNodeBB(callback) {
var skipJS; var skipJS;
var fromFile = nconf.get('from-file') || ''; var fromFile = nconf.get('from-file') || '';

Loading…
Cancel
Save