Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug where using PINRemoteImageBasicCache would cause images to be decoded on the main thread. #457

Merged
merged 2 commits into from
May 3, 2018

Conversation

kgaidis
Copy link
Contributor

@kgaidis kgaidis commented May 3, 2018

Issue reference: #451

  • PINRemoteImageBasicCache disk-cache methods are now no-op.
  • Changed cancelTaskWithUUID: documentation to say disk cache, and not memory cache.

Feel free to (of course) to pick on anything that seems weird. One decision that may feel odd is that I left the global-queue code in objectFromDiskForKey:completion:. My thought-process was to leave the code functioning as it did before as to not cause any unknown side effects. In this case, the completionHandler will continue to return from a global queue (as before), but it will just always return a nil for object, instead of just sometimes.

…o be decoded on the main thread. PINRemoteImageBasicCache disk-cache methods are now no-op.
Copy link
Collaborator

@garrettmoon garrettmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@garrettmoon
Copy link
Collaborator

Thanks so much for reporting and fixing @kgaidis !

@garrettmoon garrettmoon merged commit ca73662 into pinterest:master May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants