Check SDWebImageCacheMemoryOnly for disk caching

This commit is contained in:
NachoSoto 2013-01-29 20:10:09 +00:00
parent e7c02bb910
commit 42c7455776
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)