set cache time to 15 minutes

This commit is contained in:
Martin Donnelly 2017-10-01 12:04:16 +01:00
parent fa1c6832ca
commit bcbc30d6a4

View File

@ -22,7 +22,7 @@ app.use(bodyParser.urlencoded({ 'extended': true }));
apicache.options({ 'debug': true });
const cache = apicache.middleware;
app.use(cache('5 minutes'));
app.use(cache('15 minutes'));
function getUrl (req, res) {
const theUrl = req.params.encoded_id;