Authored by NachoSoto

Check SDWebImageCacheMemoryOnly for disk caching

... ... @@ -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)
... ...