mirror of
https://example.com
synced 2024-11-24 04:06:41 +09:00
refactor: cache relays for a longer time
This commit is contained in:
parent
f5edaaf130
commit
3705a1ecb1
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ import { createSystemUser } from "./create-system-user.js";
|
|||
|
||||
const ACTOR_USERNAME = "relay.actor" as const;
|
||||
|
||||
const relaysCache = new Cache<Relay[]>("relay", 60 * 10);
|
||||
const relaysCache = new Cache<Relay[]>("relay", 60 * 60);
|
||||
|
||||
export async function getRelayActor(): Promise<ILocalUser> {
|
||||
const user = await Users.findOneBy({
|
||||
|
|
Loading…
Reference in a new issue