Sotiris Kaniras
Sotiris Kaniras

Reputation: 680

PFImageView - How to clear cache?

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?

Upvotes: 1

Views: 347

Answers (2)

Sotiris Kaniras
Sotiris Kaniras

Reputation: 680

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

PFFile.clearAllCachedDataInBackground()

Upvotes: 2

dylankbuckley
dylankbuckley

Reputation: 1657

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

query.clearCachedResult()

Upvotes: 1

Related Questions