mirror of
https://github.com/dergigi/boris.git
synced 2026-01-09 18:04:41 +01:00
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:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user