We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6ecc0 commit aac8a8aCopy full SHA for aac8a8a
src/api/app.js
@@ -19,7 +19,7 @@ app.use(helmet());
19
async function redisCache (req, res, next) {
20
const lastCacheUpdate = await redis.get("lastUpdate#"+req.url)
21
const {headers, nextCacheDate} = getCacheDates()
22
- if(lastCacheUpdate !== null && Number(lastCacheUpdate) > (nextCacheDate.getTime() - 3600e3)){
+ if(lastCacheUpdate !== null && Number(lastCacheUpdate) > (nextCacheDate.getTime() - 10*3600e3)){
23
const cacheObject = await redis.get("data#"+req.url)
24
res.set(headers)
25
.status(200)
0 commit comments