diff --git a/middleware/lru-cache.js b/middleware/lru-cache.js index 88f702cd5..c777b02e2 100644 --- a/middleware/lru-cache.js +++ b/middleware/lru-cache.js @@ -14,7 +14,7 @@ module.exports = function(options = {}) { ignoreQuery = false, } = options; - const memoryCache = lru({ + const memoryCache = new lru({ maxAge: expire * 1000, max: maxLength, });