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

Commit

Permalink
Fix Production SWIG
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Feb 10, 2014
1 parent c1213e9 commit 72331de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
});

Expand Down

0 comments on commit 72331de

Please sign in to comment.