Take the 2-minute tour ×

Facepalm. I have been using a Github image downloader to display remote images. This is SDWebImage. I've been playing with this for an hour and a half and I'm totally lost apparently and would be eternally grateful if someone could help me figure this out.

So basically, in the SDImageCache.h file of the framework, it it set to cache images for a week. That is problematic if you are trying to update your images frequently, since it doesn't download if the image is already cached.

On Stack Overflow, I've found a bunch of people with the same issue, but so far, the solutions haven't worked. Luckily, the guy who came up with this posted his solution to empty the image cache: call for "[SDWebImageManager.sharedManager.imageCache clearMemory]".

I put that method in my main view controller's .m file with the hope it would clear the cache after calling for the image so it would update. No dice. I tried it before the ViewDidLoad too with the hope it would clear the image and initiate a download. No luck again.

Any advice on what I'm doing wrong? Here's a screen shot of my implementation file if that helps! This is driving me nuts. Thanks!


share|improve this question
Please don't make references in your questions about getting "quick" help. People help here for nothing. Pay someone if you have time scales issues. (title edited) –  occulus Dec 29 '12 at 2:21
add comment

1 Answer

up vote 1 down vote accepted

Just following up in case anyone finds this searching. To correct the problem, what you want to do is make sure the full SDWebImage package is moved into your framework folder.

At that point, you can find a WebImageCache.m file and tailor it to your specific cache needs.

Additionally, if you look in the same project on the Github, you can actually install a "clear cache" bar that uses the SDWebImageManager to enable the user to clear the cache. In my particular instance, that was very useful.

Good luck!

share|improve this answer
I've done this before and was the only way I could find to alter the caching. However, you should elaborate on which part of the code you need to change to make this a useful answer for future visitors. –  Carl Veazey Jan 22 '13 at 2:52
add comment

Your Answer


