Skip to content

Commit e083ab2

Browse files
committed
Fix the wrong behavior after 5.15.0 cache changes
1 parent 78fa0a9 commit e083ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImage/Core/SDImageCache.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ - (void)storeImage:(nullable UIImage *)image
220220
forKey:(nullable NSString *)key
221221
toDisk:(BOOL)toDisk
222222
completion:(nullable SDWebImageNoParamsBlock)completionBlock {
223-
return [self storeImage:image imageData:imageData forKey:key options:0 context:nil cacheType:(toDisk ? SDImageCacheTypeDisk : SDImageCacheTypeMemory) completion:completionBlock];
223+
[self storeImage:image imageData:imageData forKey:key options:0 context:nil cacheType:(toDisk ? SDImageCacheTypeAll : SDImageCacheTypeMemory) completion:completionBlock];
224224
}
225225

226226
- (void)storeImage:(nullable UIImage *)image

0 commit comments

Comments
 (0)