Skip to content
Browse files

Use user cache directory instead of ducment directory to prevent from…

… cache to be synced back and forth in iTunes
  • Loading branch information...
1 parent a7734af commit b2a3d3155727d74cda1a509b7107ae97efaa3b46 @rs rs committed Sep 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 SDImageCache.m
View
2 SDImageCache.m
@@ -25,7 +25,7 @@ - (id)init
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])

0 comments on commit b2a3d31

Please sign in to comment.
Something went wrong with that request. Please try again.