how to reset disk cache
Opened this issue · 3 comments
aplha98 commented
how to reset disk cache
qdsfdhvh commented
DiskCache.clear()
should do it.
val diskCache = DiskCache(FileSystem.SYSTEM) {
//...
}
ImageLoader {
interceptor {
diskCache { diskCache }
}
}
diskCache.clear()
aplha98 commented
will this will effect and image loading in the app life time
ImageLoader {
interceptor {
diskCache { diskCache }
}
}
disk
qdsfdhvh commented
I think it shouldn’t have effect, the exact implementation is in DiskLruCache, methods are all synchronized.