When storeImage:imageData:forKey:toDisk: is called with toDisk:YES but no data, do not prevent memory caching (fix: #24)
This commit is contained in:
parent
1a355d09c2
commit
e9d43e443a
|
@ -188,15 +188,11 @@ static SDImageCache *instance;
|
|||
return;
|
||||
}
|
||||
|
||||
if (toDisk && !data)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
[memCache setObject:image forKey:key];
|
||||
|
||||
if (toDisk)
|
||||
{
|
||||
if (!data) return;
|
||||
NSArray *keyWithData;
|
||||
if (data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue