shorten cache expire
This commit is contained in:
parent
4c9153fd14
commit
739a80a94e
1 changed files with 2 additions and 2 deletions
|
@ -118,8 +118,8 @@ async function fetchAny(
|
||||||
if (await updateQuestion(note.uri)) {
|
if (await updateQuestion(note.uri)) {
|
||||||
local.object.poll = await populatePoll(note, me?.id ?? null);
|
local.object.poll = await populatePoll(note, me?.id ?? null);
|
||||||
}
|
}
|
||||||
// Allow refetching the poll after 2 minutes
|
// Allow fetching the poll again after 1 minute
|
||||||
await redisClient.set(key, 1, "EX", 60 * 2);
|
await redisClient.set(key, 1, "EX", 60);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return local;
|
return local;
|
||||||
|
|
Loading…
Reference in a new issue