Skip to content
Browse files

Merge branch 'disk-cache'

  • Loading branch information...
2 parents a09776b + 42c7455 commit c389f7aa12e1ca500157db808e478b3c33d76f4b @NachoSoto NachoSoto committed Jan 29, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 SDWebImage/SDWebImageManager.m
View
3 SDWebImage/SDWebImageManager.m
@@ -116,7 +116,8 @@ - (NSString *)cacheKeyForURL:(NSURL *)url grayscale:(BOOL)grayscale
}
else if (downloadedImage && finished)
{
- [self.imageCache storeImage:downloadedImage imageData:data forKey:key toDisk:YES];
+ const BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly);
+ [self.imageCache storeImage:downloadedImage imageData:data forKey:key toDisk:cacheOnDisk];
}
if (finished)

0 comments on commit c389f7a

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