diff --git a/app/react/portainer/system/useSystemVersion.ts b/app/react/portainer/system/useSystemVersion.ts index a141c9b3c..b4b38fa17 100644 --- a/app/react/portainer/system/useSystemVersion.ts +++ b/app/react/portainer/system/useSystemVersion.ts @@ -36,5 +36,9 @@ export async function getSystemVersion() { } export function useSystemVersion() { - return useQuery(queryKey, () => getSystemVersion()); + return useQuery(queryKey, () => getSystemVersion(), { + // 24 hour stale time to reduce the number of requests to avoid github api rate limits + // a hard refresh of the browser will still trigger a new request + staleTime: 24 * 60 * 60 * 1000, + }); }