{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3749","repository_url":"https://api.github.com/repos/AFNetworking/AFNetworking","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3749/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3749/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3749/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3749","id":182746970,"number":3749,"title":"how to clear cache in AFNetworking 3.0 ?","user":{"login":"hebiao6446","id":3436651,"avatar_url":"https://avatars.githubusercontent.com/u/3436651?v=3","gravatar_id":"","url":"https://api.github.com/users/hebiao6446","html_url":"https://github.com/hebiao6446","followers_url":"https://api.github.com/users/hebiao6446/followers","following_url":"https://api.github.com/users/hebiao6446/following{/other_user}","gists_url":"https://api.github.com/users/hebiao6446/gists{/gist_id}","starred_url":"https://api.github.com/users/hebiao6446/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hebiao6446/subscriptions","organizations_url":"https://api.github.com/users/hebiao6446/orgs","repos_url":"https://api.github.com/users/hebiao6446/repos","events_url":"https://api.github.com/users/hebiao6446/events{/privacy}","received_events_url":"https://api.github.com/users/hebiao6446/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T10:01:51Z","updated_at":"2016-10-14T12:46:44Z","closed_at":null,"body":"before  AFNetworking 3.0  \r\n\r\n+ (void)clearCache\r\n{\r\n    AFImageCache *cache = (AFImageCache *)[UIImageView sharedImageCache];\r\n    [cache removeAllObjects];\r\n    return;\r\n}\r\n\r\n+ (void)clearCacheWithURL:(NSURL *)url\r\n{\r\n    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];\r\n    [request addValue:@\"image/*\" forHTTPHeaderField:@\"Accept\"];\r\n    \r\n    AFImageCache *cache = (AFImageCache *)[UIImageView sharedImageCache];\r\n    [cache removeObjectForKey:[[request URL] absoluteString]];\r\n}\r\n\r\n\r\nbut  after  AFNetworking 3.0  \r\nOK , it does not work !!!!!\r\n\r\nhow to ...... \r\nOK .. \r\nYOU KNOW ....\r\n"},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/253789822","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3749#issuecomment-253789822","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3749","id":253789822,"user":{"login":"skyline75489","id":4710575,"avatar_url":"https://avatars.githubusercontent.com/u/4710575?v=3","gravatar_id":"","url":"https://api.github.com/users/skyline75489","html_url":"https://github.com/skyline75489","followers_url":"https://api.github.com/users/skyline75489/followers","following_url":"https://api.github.com/users/skyline75489/following{/other_user}","gists_url":"https://api.github.com/users/skyline75489/gists{/gist_id}","starred_url":"https://api.github.com/users/skyline75489/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyline75489/subscriptions","organizations_url":"https://api.github.com/users/skyline75489/orgs","repos_url":"https://api.github.com/users/skyline75489/repos","events_url":"https://api.github.com/users/skyline75489/events{/privacy}","received_events_url":"https://api.github.com/users/skyline75489/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T12:46:43Z","updated_at":"2016-10-14T12:46:43Z","body":"I think what you're looking for is `removeAllImages`."}}
{"actor":{"display_login":"skyline75489"}}