From 752854fafa9b68e240dfb5481d4b88b04650836e Mon Sep 17 00:00:00 2001 From: Lior Kesos Date: Thu, 6 Feb 2014 23:58:22 +0200 Subject: [PATCH] Fixed consolidate dying on behalf of a cache=true, it needs to be cahce=memory --- config/express.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/express.js b/config/express.js index a958d5f6..151059b0 100755 --- a/config/express.js +++ b/config/express.js @@ -15,7 +15,9 @@ module.exports = function(app, passport, db) { // Prettify HTML app.locals.pretty = true; - + // cache=memory or swig dies in NODE_ENV=production + app.locals.cache = 'memory'; + // Should be placed before express.static // To ensure that all assets and data are compressed (utilize bandwidth) app.use(express.compress({