Does the OS purge the “Caches” directory prior to iOS 5?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, prior to iOS 5.0, the default behaviour was:
Neither folder was purged by the OS. The Apple docs from v4.3 state:
Caches
Contains cached data that can be regenerated as needed. Applications should never rely on the existence of cache files. Cache files should be placed in a directory whose name matches the bundle identifier of the application.
By convention, applications should store cache files in a subdirectory whose name matches the bundle identifier of the application. For example, if your application is named MyApp and has the bundle identifier com.example.MyApp, you would put user-specific cache files in the ~/Library/Caches/com.example.MyApp/ directory.
This is from June 2011 so sounds like it was in preparation for iOS 5.0.