From c512660ee9d4b3511eb713b2c0b87ab677f5bf5f Mon Sep 17 00:00:00 2001 From: Maximilian Goisser Date: Sun, 25 Feb 2024 11:00:31 +0100 Subject: [PATCH] Fix submission commit detection caching being too agressive (#141) --- data/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/utils.ts b/data/utils.ts index 809e2c40d952..4cd92ae53e4b 100644 --- a/data/utils.ts +++ b/data/utils.ts @@ -108,7 +108,10 @@ const getSubmissionCommitOfVersionInternal = async ( } export const getSubmissionCommitOfVersion = pMemoize( - getSubmissionCommitOfVersionInternal + getSubmissionCommitOfVersionInternal, + { + cacheKey: (arguments_) => JSON.stringify(arguments_), + } ) // TODO: find a more robust way to do this