Cache resource lookup results for 20 seconds for each server
This commit is contained in:
parent
c7375f09d3
commit
9b46d59045
2 changed files with 19 additions and 5 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue