I am using SDWebImageDownloader in my iOS 7 app to download images from the web. I am not using SDWebImageManager, only the downloader, which is not supposed to cache anything on my behalf.
As more and more images are downloaded, my apps memory usage slowly climbs up and up approaching 100 MB with no end in sight. This memory is never freed up, and occurs even when nothing is saved to the cache. As such, it makes me think the downloaded images are being held in memory by SDWebImageDownloader somehow. Does anyone know how to clear this memory?
UPDATE My assumption that the issue was due to the SDImageDownloader was incorrect. Every time an image downloaded, I converted the image to a smaller size, and stored that image in SDImageCache. I had ruled out SDImageCache because I had attempted to regularly clear the memory cache, which had no effect on the memory climbing. However, I just deleted the line that calls it, and no more memory problem.
This leads me to a new question: How do I use SDImageCache without the memory climbing so high? I have no need for the memory cache functionality, just the disk caching functionality. However, there does not seem to be a way to clear the memory cache, and the disk cache seems to be taking up way more memory than the reduced sized images would take up otherwise. Where is this memory usage coming from?