mirror of
https://github.com/Jellify-Music/App.git
synced 2025-12-30 15:29:49 -06:00
lkj
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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!
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user