Merge pull request #287 from NachoSoto/disk-cache
Check SDWebImageCacheMemoryOnly for disk caching
This commit is contained in:
commit
87568ce141
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue