Flutter_cached_network_image: Need a method to clear image cache

Created on 21 Sep 2018  路  6Comments  路  Source: Baseflow/flutter_cached_network_image

I don't find any way to clear the cache, other than uninstalling, reinstalling the app? Could clear method be provided, for all images, or possibly for groups, e.g. images with the same URL - server part?

Most helpful comment

I am working on a new version of the CacheManager. The alpha version on pub is already using that one. As you can see here that also includes a method to remove a specific url from the cache. It doesn't contain a method yet to clear all.

All 6 comments

Looking for this +1

Looking for this +1

I need to clear a single URL from the cache, is this not possible at the moment?

Image.network cache can be cleared using this: https://stackoverflow.com/questions/47209606/how-do-i-clear-flutters-image-cache

It'd be great to have something similar.

how to clear image cache,I not find a method,or tell me the cache directory,i will manual clear cache.

I am working on a new version of the CacheManager. The alpha version on pub is already using that one. As you can see here that also includes a method to remove a specific url from the cache. It doesn't contain a method yet to clear all.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BerndWessels picture BerndWessels  路  6Comments

flutteradv picture flutteradv  路  6Comments

srburton picture srburton  路  6Comments

tolotrasamuel picture tolotrasamuel  路  6Comments

sososdk picture sososdk  路  5Comments