qdsfdhvh/compose-imageloader

how to reset disk cache

Opened this issue · 3 comments

how to reset disk cache

DiskCache.clear() should do it.

val diskCache = DiskCache(FileSystem.SYSTEM) {
    //...
}
ImageLoader { 
    interceptor { 
        diskCache { diskCache }
    }
}
diskCache.clear()

will this will effect and image loading in the app life time
ImageLoader {
interceptor {
diskCache { diskCache }
}
}
disk

I think it shouldn’t have effect, the exact implementation is in DiskLruCache, methods are all synchronized.