I have been having an issue where no matter what framework i use to cache my images, from AFNetworking to SDWebImage's caching techniuqes to write to the disk. Everytime i press the home button, then go back to the app. Its like all the images have to be RE cached.
I have no clue where to start looking
In order to use both AFNetworking for my regular networking functions, such as JSON and image uploading i used https://gist.github.com/sibljon/5957892 to resolve namespace collisions so i cold totally override AFNetworkings UIImageView and stick with SDWebImage so instead of calling
Thanks to jonsibley and his answer i dont call
[imageFile setImageWithURL:[NSURL URLWithString:friendAvatar] placeholderImage:[UIImage imageNamed:@"defaultProfileImage.png"]];
im now calling (just a SD_ in front now) which allows me to override AFNetworkings caching. Correct?
[imageFile SD_setImageWithURL:[NSURL URLWithString:friendAvatar] placeholderImage:[UIImage imageNamed:@"defaultProfileImage.png"]];
EDIT UDPATE:
After much more testing i found out that the app is cleaning the cache once it RESUMES the app, NOT when it starts to get suspended (when home button is pressed) Any clue to what may be causing this?