Skip to content

Commit

Permalink
.storeAll now stores processed images for locals too, as it should be
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperfocusDisordered authored Aug 16, 2024
1 parent a30faed commit ca1c16b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Nuke/Tasks/TaskLoadImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca1c16b

Please sign in to comment.