From 4550d1ed3c7c2fed8ffc79844f9f2573e3533e15 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 26 Oct 2025 20:33:51 +0200 Subject: [PATCH] Tournament no screen cache consider participant ID's as well Should make it a bit more resilient as if you reset brackets etc. matches ID might be reused. --- .../tournament-bracket/loaders/to.$id.matches.$mid.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/features/tournament-bracket/loaders/to.$id.matches.$mid.server.ts b/app/features/tournament-bracket/loaders/to.$id.matches.$mid.server.ts index 079ec4461..92114f46d 100644 --- a/app/features/tournament-bracket/loaders/to.$id.matches.$mid.server.ts +++ b/app/features/tournament-bracket/loaders/to.$id.matches.$mid.server.ts @@ -36,7 +36,7 @@ export const loader = async ({ params }: LoaderFunctionArgs) => { const noScreen = match.opponentOne?.id && match.opponentTwo?.id ? await cachified({ - key: `no-screen-mid-${matchId}`, + key: `no-screen-mid-${matchId}-${match.opponentOne.id}-${match.opponentTwo.id}`, cache, // avoid preferences from other test runs leaking in ttl: IS_E2E_TEST_RUN ? -1 : ttl(IN_MILLISECONDS.TWO_DAYS),