SDWebImage / SDWebImageLinkPlugin

A SDWebImage loader plugin, to support load rich link image with LinkPresentation framework
MIT License
17 stars 2 forks source link

Can SDImageCacheType be changed from SDImageCacheTypeNone? #2

Closed inPhilly closed 4 years ago

inPhilly commented 4 years ago

When I use SDWebImage to load a UIImage from a typical image NSURL, the results are automatically cached. Using SDWebImageLinkPlugin, I set a UIImageView's image in a UICollectionViewCell using sd_setImageWithURL; after the controller fully loads, I exit the controller, come back, and everything has to reload from the beginning. Nothing is retrieved from the SDImageCache and in fact the SDImageCacheType is SDImageCacheTypeNone. Is this the expected behavior? Is there a way I can change this behavior to mimic that of the default NSURL loader?

dreampiggy commented 4 years ago

@inPhilly The SDWebImageStoreCacheType context option is provided by user, this framework does not set anything.

Try version 0.2.0, which supports caching LPLinkMetadata, actually the first usable version.