express-redis-cache
express-redis-cache copied to clipboard
Cache never expire
Hi, We are using express-redis-cache with aws-serverless-express 3.x on AWS Lambda (node 6.10)
I have configure the redis cache ttl to 60s for Http Status 200:
app.use("/api/*",cache.route({expire: {200: 60, xxx: 10}}),function(req, res, next) { next(); });
Most of the time, cache is refresh correctly (each 60s) but sometime, the response is cache forever.
The bug appear only on production.
Hi @kouz75 ,
I experienced the same problem. On my machine it occurred after I
introduced the expire option. All pages that had been cached before
are still never expiring.
For me a total erasure of all affected objects in the database was the solution.
@rawpixel-vincent It would be great if we can add this issue to 2.0 release plan too.