Fix Production SWIG

This commit is contained in:
Amos Haviv
2014-02-10 16:15:06 +02:00
parent c1213e9a7b
commit 72331dec3a

View File

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