1
1
mirror of https://github.com/kean/Nuke.git synced 2024-11-28 12:04:01 +03:00

.storeAll now stores processed images for locals too, as it should be

This commit is contained in:
Denis Ovchar 2024-08-16 17:11:04 +02:00 committed by GitHub
parent a30faed641
commit ca1c16b7d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,8 +174,7 @@ final class TaskLoadImage: AsyncPipelineTask<ImageResponse>, @unchecked Sendable
private func shouldStoreResponseInDataCache(_ response: ImageResponse) -> Bool {
guard !response.container.isPreview,
!(response.cacheType == .disk),
!(request.url?.isLocalResource ?? false) else {
!(response.cacheType == .disk) else {
return false
}
let isProcessed = !request.processors.isEmpty || request.thumbnail != nil