added server caching
This commit is contained in:
parent
1799d8a72f
commit
dc593081f8
@ -17,6 +17,8 @@ logger.level = 'debug';
|
|||||||
// app.use(compression());
|
// app.use(compression());
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded({ 'extended': true }));
|
app.use(bodyParser.urlencoded({ 'extended': true }));
|
||||||
|
|
||||||
|
apicache.options({ 'debug': true });
|
||||||
const cache = apicache.middleware;
|
const cache = apicache.middleware;
|
||||||
|
|
||||||
app.use(cache('5 minutes'));
|
app.use(cache('5 minutes'));
|
||||||
|
Loading…
Reference in New Issue
Block a user