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?
Asked
Active
Viewed 347 times
1
-
I always understood Parse automatically flushed the cache when it got too large. – dylankbuckley Sep 19 '16 at 22:09
-
And when does it get too large? Is there a way to clean it up myself, say once a week? – Sotiris Kaniras Sep 19 '16 at 22:23
2 Answers
2
So, in order to delete all cached images, we simply have to call:
PFFile.clearAllCachedDataInBackground()

Sotiris Kaniras
- 520
- 1
- 12
- 30
1
To manually clear the Parse query cache you can call (In Swift):
query.clearCachedResult()

dylankbuckley
- 1,507
- 1
- 13
- 21
-
Thanks, but I'm not talking about PFQuery caching... I'm talking about image caching, using the PFImageView subclass... Do you have any idea, if it's possible to clear that cache? – Sotiris Kaniras Sep 19 '16 at 22:47