mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
shorten cache expire
This commit is contained in:
parent
f03861a189
commit
f28c5f8116
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue