removed cacheStaticFiles

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

@ -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') || '';

Loading…
Cancel
Save