Hacker News new | ask | show | jobs
by ar15saveslives 3371 days ago
iOS cleans up Caches/tmp directory, it it needs space.

https://developer.apple.com/library/content/documentation/Fi...

> "Note that the system may delete the Caches/ directory to free up disk space, so your app must be able to re-create or download these files as needed."

> tmp: "however, the system may purge this directory when your app is not running."

2 comments

Despite this claim. It doesn't feel like it happens. Maybe, apps aren't writing the Cache files to the right place and that's why they aren't being cleaned up.
But system controlled garbage collection is great until it's not. When I need space, I need it now, not when system decides I do. We've seen it with Java, and now with iOS. Yet another thing that iOS does on my behalf that I may wish to do myself.