memory usage around images?

This commit is contained in:
Violet Caulfield
2025-02-15 08:29:56 -06:00
parent 290588fc42
commit 0ca787b137
@@ -32,8 +32,8 @@ export default function BlurhashedImage({
Math.ceil(height ?? width / 100) * 100 // So these keys need to match
],
queryFn: () => fetchItemImage(item.Id!, type ?? ImageType.Primary, width, height ?? width),
staleTime: (1000 * 60 * 1), // 1 minute,
gcTime: (1000 * 60 * 60 * 24 * 7) // 7 days
staleTime: (1000 * 60 * 60) * 24, // 1 day,
gcTime: (1000 * 60 * 5) * 1 // 5 minutes
});;
const blurhash = !isEmpty(item.ImageBlurHashes)