onevcat / Kingfisher

A lightweight, pure-Swift library for downloading and caching images from the web.
MIT License
23.08k stars 2.64k forks source link

iOS simulator stop caching image in memory cache #1432

Open satishVekariya opened 4 years ago

satishVekariya commented 4 years ago

steps to reproduce simulate memory warning > reload image > check in memory cache (found nil)

image is cached in disk but not in memory after memory warning which cause flicker on reload

bguidolim commented 4 years ago

This is the expected behavior, the memory cache is used temporarily when there are resources available. If your UI is flickering, it would be probably because of other reasons, like loading big images in a list without downsizing it.