Merge pull request #870 from fawnapp/ioscachefix

put cache.db in the caches folder
This commit is contained in:
Justin R. Miller
2015-02-12 17:26:25 -08:00

View File

@@ -24,7 +24,7 @@
// Returns the path to the default cache database on this system.
const std::string &defaultCacheDatabase() {
static const std::string path = []() -> std::string {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
if ([paths count] == 0) {
// Disable the cache if we don't have a location to write.
return "";