Commit 5bf6ca84 authored by Marvin Scholz's avatar Marvin Scholz

Fix crash in production due to wrong caching option

This fixes an issue with a wrong caching option
passed to the templating engine if running  in
production mode.
parent 1c9de7d8
......@@ -35,7 +35,7 @@ var search = require('./controllers/search.js')(query, cache, streamsFi
query.connectionParameters = config.db;
swig.setDefaults({ cache: (process.env.NODE_ENV === 'production') ? true : false });
swig.setDefaults({ cache: (process.env.NODE_ENV === 'production') ? 'memory' : false });
/* Middlewares */
app.use(morgan((process.env.NODE_ENV === 'production') ? 'short' : 'dev'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment