shorten cache expire

This commit is contained in:
Namekuji 2023-06-18 18:04:26 -04:00
parent 4c9153fd14
commit 739a80a94e
No known key found for this signature in database
GPG Key ID: B541BD6E646CABC7
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ async function fetchAny(
if (await updateQuestion(note.uri)) {
local.object.poll = await populatePoll(note, me?.id ?? null);
}
// Allow refetching the poll after 2 minutes
await redisClient.set(key, 1, "EX", 60 * 2);
// Allow fetching the poll again after 1 minute
await redisClient.set(key, 1, "EX", 60);
}
}
return local;