From 816019e6a3151bb9d8c5d3047b00df22bf4c0077 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Tue, 16 Jan 2024 11:17:21 +0800 Subject: [PATCH] extend ttl of the saved item cache to 26 hours --- packages/api/src/utils/helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/utils/helpers.ts b/packages/api/src/utils/helpers.ts index cf179fd35..304553eba 100644 --- a/packages/api/src/utils/helpers.ts +++ b/packages/api/src/utils/helpers.ts @@ -413,9 +413,9 @@ export const setRecentlySavedItemInRedis = async ( userId: string, url: string ) => { - // save the url in redis for 8 hours so rss-feeder won't try to re-save it + // save the url in redis for 26 hours so rss-feeder won't try to re-save it const redisKey = `recent-saved-item:${userId}:${url}` - const ttlInSeconds = 60 * 60 * 8 + const ttlInSeconds = 60 * 60 * 26 try { return redisClient.set(redisKey, 1, { EX: ttlInSeconds,