From bba8ff0364d89b458c4bafc0bf96741124f270b6 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Thu, 12 Feb 2015 17:27:06 -0800 Subject: [PATCH] Revert "put cache.db in the caches folder" --- platform/ios/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 89ebef248..7c1f9eb65 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -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(NSCachesDirectory, NSUserDomainMask, YES); + NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); if ([paths count] == 0) { // Disable the cache if we don't have a location to write. return "";