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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to