In an app we can use FileManager.SearchPathDirectory.cachesDirectory (objc:NSCachesDirectory) to store files that could be recreated if necessary (and will be automatically deleted by iOS in cases of low disk memory).
For app groups, there is a shared location that is automatically created as soon as we use containerURL(forSecurityApplicationGroupIdentifier:) (objc:containerURLForSecurityApplicationGroupIdentifier) :
Library/Caches
- Is this cache directory (created by iOS) also gets automatically deleted by iOS in cases of low disk memory ?
I also have more related questions :
- does this cache directory size count in the used disk space by the app displayed in the settings app ?
- is this cache directory (and same question for the top containerURL directory) saved in the cloud backups ?
Does anyone have any information about this?