Cache resource lookup results for 20 seconds for each server

This commit is contained in:
Dane Everitt 2021-03-21 12:29:18 -07:00
parent c7375f09d3
commit 9b46d59045
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 19 additions and 5 deletions

View file

@ -59,7 +59,7 @@ export default ({ server, className }: { server: Server; className?: string }) =
getStats().then(() => {
// @ts-ignore
interval.current = setInterval(() => getStats(), 20000);
interval.current = setInterval(() => getStats(), 30000);
});
return () => {