From 79a428a4c0c370b177f1929c475c869a51d98584 Mon Sep 17 00:00:00 2001 From: Hanif Dwy Putra S <47862061+hansputera@users.noreply.github.com> Date: Thu, 25 Nov 2021 12:56:52 +0700 Subject: [PATCH] fix(rotator): remove "RedisClient.del(key)" --- lib/rotator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rotator.ts b/lib/rotator.ts index 26ca67d5..a9ae59bd 100644 --- a/lib/rotator.ts +++ b/lib/rotator.ts @@ -10,7 +10,7 @@ export const rotateProvider = async ( noCache: boolean = false): Promise => { const cachedData = await redisClient.get(url); - await redisClient.del(url); + // await redisClient.del(url); if (!cachedData) { const data = await provider.fetch(url); if (data.error) {