From 72331dec3afbe1e14f18abe2ba7d8e98dd3c046a Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Mon, 10 Feb 2014 16:15:06 +0200 Subject: [PATCH] Fix Production SWIG --- config/express.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/express.js b/config/express.js index e326af2647..3a2694207e 100755 --- a/config/express.js +++ b/config/express.js @@ -63,8 +63,12 @@ module.exports = function(db) { // Disable views cache app.set('view cache', false); - swig.setDefaults({ - cache: false, + }); + + // Application Configuration for production environment + app.configure('production', function() { + app.locals({ + cache: 'memory' // To solve the SWIG Cache Issues }); });