There was an error while loading. Please reload this page.
1 parent cfb2028 commit 069ca6dCopy full SHA for 069ca6d
1 file changed
app/lib/verifiableObject.ts
@@ -36,9 +36,11 @@ export function extractCredentialsFrom(
36
return null
37
}
38
39
-/* Verification expiration = 30 days */
40
-const VERIFICATION_EXPIRATION = 1000 * 30
41
-const lruCache = new LruCache({ maxAge: VERIFICATION_EXPIRATION })
+/* Cache verification results briefly to avoid duplicate UI verification work. */
+const VERIFICATION_CACHE_TTL_MINUTES = 15
+const lruCache = new LruCache({
42
+ maxAge: VERIFICATION_CACHE_TTL_MINUTES * 60 * 1000
43
+})
44
export type VerificationResult = {
45
timestamp: number | null
46
log: ResultLog[]
0 commit comments