This commit is contained in:
Violet Caulfield
2025-02-17 07:29:48 -06:00
parent 54fadbd6c8
commit 969eff5b75
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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!
}
}
});