From 819109d371bffca2508fa6a2c2b529b249eb0b63 Mon Sep 17 00:00:00 2001 From: capitanwesler Date: Tue, 30 Mar 2021 18:46:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8E=20Error=20with=20time=20in=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/UtilsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/UtilsController.ts b/src/controllers/UtilsController.ts index 87ebdaa..fcea77d 100644 --- a/src/controllers/UtilsController.ts +++ b/src/controllers/UtilsController.ts @@ -201,7 +201,7 @@ export default class UtilsController { redisClient.expireat( `news_${hashStringMd5('news')}`, - parseInt(`${+new Date() / 1000}`, 10) + 72000, + parseInt(`${+new Date() / 1000}`, 10) + 7200, ); res.status(200).json({ news });