From 4fd4351a2fafc8c4972f6fd0a57805869700ab1b Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Wed, 4 Mar 2015 09:57:18 -0600 Subject: #869 - Configuring cache.db to live in /Library/Caches for iOS --- platform/ios/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index eb1b8ecfa6..e68ba6c93f 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -25,7 +25,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 ""; -- cgit v1.2.1