nicklockwood/AsyncImageView — Issue #5: Unable to clear cache
Author: wqazmlpo
Created: 2011-11-17 23:34:46+00:00
State: open

First of all I wanted to thank you ad congratulate for this code. It's been very helpful.

I'm displaying an image on an UIImageView using the ```imageFromUrl``` method. The image loads great, but after doing an action the image loaded previously get refreshed on the server and I would like to download the newest version of that image. I've tried to clear the cache in different ways but I don't get the image latest version unless I restart the app.

The latest thing I've tried is the following, still no luck trying to clear the cache.

```
NSURL *url = [NSURL URLWithString: [user photo]];

[AsyncImageLoader sharedLoader].cache = nil;
[[AsyncImageCache sharedCache] removeImageForURL:url];

self.pictureImageView.imageURL = url; // Still getting previous version of the image
```

Thanks