From 114f20dd004491b3ef417e51129fa03f16834eb5 Mon Sep 17 00:00:00 2001 From: Thomas Feldtkeller Date: Mon, 11 Nov 2024 13:42:23 +0100 Subject: [PATCH] remove teams cache only data that isnt subject to change should be cached for langer than usual (1 sec by default) --- apps/server/src/shared/repo/teams/teams.repo.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/server/src/shared/repo/teams/teams.repo.ts b/apps/server/src/shared/repo/teams/teams.repo.ts index f8b8f1e222a..4e10c60fe69 100644 --- a/apps/server/src/shared/repo/teams/teams.repo.ts +++ b/apps/server/src/shared/repo/teams/teams.repo.ts @@ -10,10 +10,8 @@ export class TeamsRepo extends BaseRepo { return TeamEntity; } - cacheExpiration = 60000; - async findById(id: EntityId, populate = false): Promise { - const team = await this._em.findOneOrFail(TeamEntity, { id }, { cache: this.cacheExpiration }); + const team = await this._em.findOneOrFail(TeamEntity, { id }); if (populate) { await Promise.all(