mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 03:26:30 +02:00
Fix Production SWIG
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user