Use user cache directory instead of ducment directory to prevent from cache to be synced back and forth in iTunes
This commit is contained in:
parent
a7734af511
commit
b2a3d31557
|
|
@ -25,7 +25,7 @@ static SDImageCache *instance;
|
|||
memCache = [[NSMutableDictionary alloc] init];
|
||||
|
||||
// Init the disk cache
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
|
||||
diskCachePath = [[[paths objectAtIndex:0] stringByAppendingPathComponent:@"ImageCache"] retain];
|
||||
|
||||
if (![[NSFileManager defaultManager] fileExistsAtPath:diskCachePath])
|
||||
|
|
|
|||
Loading…
Reference in New Issue