Skip to content

Commit

Permalink
fix(rotator): remove "RedisClient.del(key)"
Browse files Browse the repository at this point in the history
  • Loading branch information
hansputera authored Nov 25, 2021
1 parent 68ce429 commit 79a428a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rotator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const rotateProvider = async (
noCache: boolean = false):
Promise<ExtractedInfo & { provider: string; }> => {
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) {
Expand Down

1 comment on commit 79a428a

@vercel
Copy link

@vercel vercel bot commented on 79a428a Nov 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.