mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
refactor: cache relays for a longer time
This commit is contained in:
parent
1ea8f8b4fe
commit
f835cccccf
@ -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 New Issue
Block a user