Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 72331de

Browse files
committed
Fix Production SWIG
1 parent c1213e9 commit 72331de

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config/express.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ module.exports = function(db) {
6363

6464
// Disable views cache
6565
app.set('view cache', false);
66-
swig.setDefaults({
67-
cache: false,
66+
});
67+
68+
// Application Configuration for production environment
69+
app.configure('production', function() {
70+
app.locals({
71+
cache: 'memory' // To solve the SWIG Cache Issues
6872
});
6973
});
7074

0 commit comments

Comments
 (0)