extend ttl of the saved item cache to 26 hours

This commit is contained in:
Hongbo Wu
2024-01-16 11:17:21 +08:00
parent 5bd670ded4
commit 816019e6a3

View File

@ -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,