Page MenuHomePhabricator

D13299.id44063.diff
No OneTemporary

D13299.id44063.diff

diff --git a/lib/components/user-identity-cache.react.js b/lib/components/user-identity-cache.react.js
--- a/lib/components/user-identity-cache.react.js
+++ b/lib/components/user-identity-cache.react.js
@@ -11,7 +11,9 @@
import sleep from '../utils/sleep.js';
const cacheTimeout = 24 * 60 * 60 * 1000; // one day
-const failedQueryCacheTimeout = 5 * 60 * 1000; // five minutes
+// If the query fails due to a timeout, we don't cache it
+// This forces a retry on the next request
+const failedQueryCacheTimeout = 0;
const queryTimeout = 20 * 1000; // twenty seconds
async function throwOnTimeout(identifier: string) {
@@ -172,7 +174,7 @@
});
continue;
}
- resultMap.set(userID, null);
+ resultMap.set(userID, undefined);
}
return resultMap;
})();

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 20, 1:17 AM (8 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2132321
Default Alt Text
D13299.id44063.diff (836 B)

Event Timeline