fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Delete image given its Uri.

Open the-douglas-soares opened this issue 11 years ago • 4 comments

My app can change the content it shows periodically, so I delete the data from database, however I could not figure out how to delete the image form disk cache (in order to avoid unnecessary disk storage). Is there any way to do it using Fresco? Thanks in advance.

the-douglas-soares avatar Apr 12 '15 17:04 the-douglas-soares

We don't yet support deletion of an individual image.

The cache has a size limit which it does not exceed, and when it comes up against this, old entries will be evicted.

If you are having an actual issue with low disk space, you can use a DiskTrimmableRegistry. See the instructions.

tyronen avatar Apr 12 '15 19:04 tyronen

Thanks for the answer @tyronen, however I think you should not close this issue, I won't be able to use Fresco if don't find a way to work this around. Regarda

the-douglas-soares avatar Apr 12 '15 20:04 the-douglas-soares

Regards*

the-douglas-soares avatar Apr 12 '15 20:04 the-douglas-soares

Duplicate of https://github.com/facebook/fresco/issues/124

plamenko avatar Apr 17 '15 00:04 plamenko