added server caching

This commit is contained in:
Martin Donnelly 2017-09-11 15:36:12 +01:00
parent 1799d8a72f
commit dc593081f8

View File

@ -17,6 +17,8 @@ logger.level = 'debug';
// app.use(compression());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ 'extended': true }));
apicache.options({ 'debug': true });
const cache = apicache.middleware;
app.use(cache('5 minutes'));