fixed rate limits into env

This commit is contained in:
Muhammad Ibrahim
2025-09-21 03:58:22 +01:00
parent 9a3827dced
commit f3351d577d
29 changed files with 331 additions and 265 deletions

View File

@@ -735,8 +735,8 @@ const Hosts = () => {
const { data: hosts, isLoading, error, refetch } = useQuery({
queryKey: ['hosts'],
queryFn: () => dashboardAPI.getHosts().then(res => res.data),
refetchInterval: 60000,
staleTime: 30000,
refetchInterval: 300000, // Refresh every 5 minutes instead of 1 minute
staleTime: 120000, // Consider data stale after 2 minutes
})
const { data: hostGroups } = useQuery({