mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
enable disk cache
This commit is contained in:
@@ -95,6 +95,7 @@ class RemoteImagesImpl(context: Context) : RemoteImageApi {
|
|||||||
.enableQuic(true)
|
.enableQuic(true)
|
||||||
.enableBrotli(true)
|
.enableBrotli(true)
|
||||||
.setStoragePath(storageDir.absolutePath)
|
.setStoragePath(storageDir.absolutePath)
|
||||||
|
.enableHttpCache(CronetEngine.Builder.HTTP_CACHE_DISK, CACHE_SIZE_BYTES)
|
||||||
.build()
|
.build()
|
||||||
.also { cronetEngine = it }
|
.also { cronetEngine = it }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user