ioscachingparse-platformpffile

Clear Files from Parse Cache


I have an app which is using parse, and it is downloading a caching a lot of files.

The app size on disk is getting rather large.

Is there any safe way currently to clear items from the cache?

According to https://www.parse.com/questions/pffilecache-refresh-and-pffile-versioning it's not possible, but that's a year old and I'm hoping something has changed here.

Thanks!


Solution

  • According to the documentation, it is now possible to delete the cache.

    To delete cache of a specific query use:

    query.clearCachedResult()
    

    To delete complete cache use:

    PFQuery.clearAllCachedResults()