diff --git a/components/Global/components/blurhashed-image.tsx b/components/Global/components/blurhashed-image.tsx index b619e881..7f1cfe50 100644 --- a/components/Global/components/blurhashed-image.tsx +++ b/components/Global/components/blurhashed-image.tsx @@ -32,7 +32,7 @@ export default function BlurhashedImage({ Math.ceil(height ?? width / 100) * 100 // So these keys need to match ], queryFn: () => fetchItemImage(item.AlbumId ? item.AlbumId : item.Id!, type ?? ImageType.Primary, width, height ?? width), - gcTime: (1000 * 60), // 1 minute, these are stored on disk anyways + gcTime: (1000 * 60) * 5, // 5 minutes, these are stored on disk anyways }); const blurhash = !isEmpty(item.ImageBlurHashes) diff --git a/constants/query-client.ts b/constants/query-client.ts index 51b10070..f7a8f703 100644 --- a/constants/query-client.ts +++ b/constants/query-client.ts @@ -4,6 +4,7 @@ export const queryClient = new QueryClient({ defaultOptions: { queries: { gcTime: Infinity, // disable + staleTime: (1000 * 60) * 60 // 1 hour, users can manually refresh stuff too! } } }); \ No newline at end of file