What is ~/Library/Caches/<my app>/<...> for?
What is ~/Library/Caches/<my app>/<...> for?
- Subject: What is ~/Library/Caches/<my app>/<...> for?
- From: Graham Cox <email@hidden>
- Date: Tue, 05 May 2015 13:05:27 +1000
I’ve noticed that ~/Library/Caches/ contains an entry for pretty much every installed app, that contains files called
Cache.db
Cache.db-shm
Cache.db-wal
/fsCachedData/<UUID>
Does anyone know what these are for?
I’ve been tracking down a problem with my app reported by a couple of users (but naturally unreproducable when running in the debugger) where a thread was spinning causing high CPU usage and laggy performance. Eventually we stumbled across the fact that deleting the folder with our app’s ID in the Caches fixes the problem, and the app behaves normally. Trouble is, it’s just voodoo - it works but we have absolutely no idea why.
Googling about this seems to suggest it’s something to do with an app accessing the internet, but our app does not access the internet, except to open a URL or two in the default browser using Launch Services. They seem to be sqlite stores, but our app isn’t using Core Data or any sqlite stuff directly at all.
If we had any idea what this was for, we might be able to figure out if there’s a bug in our code that needs to be fixed, or a bug in Apple’s code that needs to be reported. I do hate this opaque system clutter, especially when it goes wrong.
Also, is there a way a sandboxed app can safely delete its own files from this location, or would special exemptions be needed? I can’t imagine the Keepers of The Store™ would allow it.
—Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden