diff --git a/lib/middleware/lru-cache.js b/lib/middleware/lru-cache.js index d839c5088f..d8d4f9d901 100644 --- a/lib/middleware/lru-cache.js +++ b/lib/middleware/lru-cache.js @@ -17,6 +17,7 @@ module.exports = function(options = {}) { const memoryCache = new lru({ maxAge: expire * 1000, max: maxLength, + updateAgeOnGet: true, }); options.app.context.cache = {