PFImageView - How to clear cache?

349 views Asked by At

I'm using PFImageViews a lot in my app, since I need its caching ability... The thing is, that my app now takes 108.9MBs of storage! Is there any way to free up this storage?

2

There are 2 answers

0
Sotiris Kaniras On BEST ANSWER

So, in order to delete all cached images, we simply have to call:

PFFile.clearAllCachedDataInBackground()
1
dylankbuckley On

To manually clear the Parse query cache you can call (In Swift):

query.clearCachedResult()