diff --git a/packages/backend/src/services/user-cache.ts b/packages/backend/src/services/user-cache.ts index b7919d008..760b2570f 100644 --- a/packages/backend/src/services/user-cache.ts +++ b/packages/backend/src/services/user-cache.ts @@ -18,11 +18,11 @@ export const uriPersonCache = new Cache( async (uri) => await Users.findOneBy({ uri, isDeleted: IsNull() }) ?? undefined, ); export const publicKeyCache = new Cache( - 2 * HOUR, + 15 * MINUTE, (keyId) => UserPublickeys.findOneBy({ keyId }).then(x => x ?? undefined), ); export const publicKeyByUserIdCache = new Cache( - 2 * HOUR, + 15 * MINUTE, (userId) => UserPublickeys.findOneBy({ userId }).then(x => x ?? undefined), );