perf: fix gcTime Infinity → 5min, reduce useAuthor retry 3 → 1

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy
2026-02-18 01:23:28 -06:00
parent 1571b09de4
commit bec09826ee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ const queryClient = new QueryClient({
queries: {
refetchOnWindowFocus: false,
staleTime: 60000, // 1 minute
gcTime: Infinity,
gcTime: 300000, // 5 minutes
},
},
});
+1 -1
View File
@@ -29,6 +29,6 @@ export function useAuthor(pubkey: string | undefined) {
}
},
staleTime: 5 * 60 * 1000, // Keep cached data fresh for 5 minutes
retry: 3,
retry: 1,
});
}