Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3392590
D13299.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
836 B
Referenced Files
None
Subscribers
None
D13299.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 9:21 AM (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2604544
Default Alt Text
D13299.diff (836 B)
Attached To
Mode
D13299: [lib] Set failedQueryCacheTimeout to 0 in UserIdentityCache
Attached
Detach File
Event Timeline
Log In to Comment