Skip to content

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

Merged
garrettmoon merged 2 commits into
pinterest:masterfrom
kgaidis:fix-basic-cache
May 3, 2018
Merged

Fixed a bug where using PINRemoteImageBasicCache would cause images to be decoded on the main thread.#457
garrettmoon merged 2 commits into
pinterest:masterfrom
kgaidis:fix-basic-cache

Conversation

@kgaidis

@kgaidis kgaidis commented May 3, 2018

Copy link
Copy Markdown
Contributor

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.

@garrettmoon garrettmoon left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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.

2 participants