Merge pull request #287 from NachoSoto/disk-cache

Check SDWebImageCacheMemoryOnly for disk caching
This commit is contained in:
Olivier Poitrey 2013-01-29 15:02:01 -08:00
commit 87568ce141
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@
}
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)