I'm really wondering what is stored in the mentioned path?
A side question: May a developer use this path (at least the folder) to store his own temp data?
Is it safe to delete Mac caches? It's good to be careful about deleting stuff from your Mac, but it's generally safe to remove cached data. You shouldn't run into any major issues if you delete cached files from system-level (/Library/Caches/) and user-level folders (~/Library/Caches/).
You can delete cache files on your Mac without having to worry about it acting up. This is because the important files will just load back when needed. However, you have to be careful not to delete files that are important for running your system.
Cache library (CacheLib) is a C++ library for accessing and managing cache data. It is a thread-safe API that enables developers to build and customize scalable, concurrent caches.
[...] what is stored [...] ?
Cached responses from webservers.
[...] use this path [...] ?
The directory is meant to use for application cache files. Get this path using:
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString* cacheDir = [paths objectAtIndex:0];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With