feat: change default image cache size to 210MB

Increase default cache size from 50MB to 210MB for better offline experience
This commit is contained in:
Gigi
2025-10-09 17:31:53 +01:00
parent 724a3e5cfa
commit 43d5554c0c
4 changed files with 6 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ export function useImageCache(
// Cache image in background
if (!isLoading) {
setIsLoading(true)
const maxSize = settings?.imageCacheSizeMB ?? 50
const maxSize = settings?.imageCacheSizeMB ?? 210
cacheImage(imageUrl, maxSize)
.then(dataUrl => {
@@ -81,7 +81,7 @@ export function useCacheImageOnLoad(
if (cached) return
// Cache in background
const maxSize = settings?.imageCacheSizeMB ?? 50
const maxSize = settings?.imageCacheSizeMB ?? 210
cacheImage(imageUrl, maxSize).catch(err => {
console.error('Failed to cache image:', err)
})