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.
This commit is contained in:
Kalle
2025-10-26 20:33:51 +02:00
parent d4a1e0a184
commit 4550d1ed3c

View File

@@ -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),