Fix the wrong behavior after 5.15.0 cache changes

This commit is contained in:
DreamPiggy 2023-01-12 14:49:02 +08:00
parent 78fa0a9cb5
commit e083ab293f
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ static NSString * _defaultDiskCacheDirectory;
forKey:(nullable NSString *)key
toDisk:(BOOL)toDisk
completion:(nullable SDWebImageNoParamsBlock)completionBlock {
return [self storeImage:image imageData:imageData forKey:key options:0 context:nil cacheType:(toDisk ? SDImageCacheTypeDisk : SDImageCacheTypeMemory) completion:completionBlock];
[self storeImage:image imageData:imageData forKey:key options:0 context:nil cacheType:(toDisk ? SDImageCacheTypeAll : SDImageCacheTypeMemory) completion:completionBlock];
}
- (void)storeImage:(nullable UIImage *)image