Skip to content

Commit aac8a8a

Browse files
committed
Revert "lower cache to 1h"
This reverts commit b12ecc6.
1 parent 7c6ecc0 commit aac8a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ app.use(helmet());
1919
async function redisCache (req, res, next) {
2020
const lastCacheUpdate = await redis.get("lastUpdate#"+req.url)
2121
const {headers, nextCacheDate} = getCacheDates()
22-
if(lastCacheUpdate !== null && Number(lastCacheUpdate) > (nextCacheDate.getTime() - 3600e3)){
22+
if(lastCacheUpdate !== null && Number(lastCacheUpdate) > (nextCacheDate.getTime() - 10*3600e3)){
2323
const cacheObject = await redis.get("data#"+req.url)
2424
res.set(headers)
2525
.status(200)

0 commit comments

Comments
 (0)