mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user