{"action":"created","issue":{"url":"https://api.github.com/repos/bumptech/glide/issues/624","labels_url":"https://api.github.com/repos/bumptech/glide/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/624/comments","events_url":"https://api.github.com/repos/bumptech/glide/issues/624/events","html_url":"https://github.com/bumptech/glide/issues/624","id":106365988,"number":624,"title":"How to clear cache","user":{"login":"nvhaiwork","id":4714680,"avatar_url":"https://avatars.githubusercontent.com/u/4714680?v=3","gravatar_id":"","url":"https://api.github.com/users/nvhaiwork","html_url":"https://github.com/nvhaiwork","followers_url":"https://api.github.com/users/nvhaiwork/followers","following_url":"https://api.github.com/users/nvhaiwork/following{/other_user}","gists_url":"https://api.github.com/users/nvhaiwork/gists{/gist_id}","starred_url":"https://api.github.com/users/nvhaiwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvhaiwork/subscriptions","organizations_url":"https://api.github.com/users/nvhaiwork/orgs","repos_url":"https://api.github.com/users/nvhaiwork/repos","events_url":"https://api.github.com/users/nvhaiwork/events{/privacy}","received_events_url":"https://api.github.com/users/nvhaiwork/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-14T15:23:35Z","updated_at":"2015-09-14T16:12:24Z","closed_at":null,"body":"Hi, \r\nHow can I clear Glide's cache in case.\r\n+ Clear all cache\r\n+ Clear cache of an URL."},"comment":{"url":"https://api.github.com/repos/bumptech/glide/issues/comments/140128177","html_url":"https://github.com/bumptech/glide/issues/624#issuecomment-140128177","issue_url":"https://api.github.com/repos/bumptech/glide/issues/624","id":140128177,"user":{"login":"nvhaiwork","id":4714680,"avatar_url":"https://avatars.githubusercontent.com/u/4714680?v=3","gravatar_id":"","url":"https://api.github.com/users/nvhaiwork","html_url":"https://github.com/nvhaiwork","followers_url":"https://api.github.com/users/nvhaiwork/followers","following_url":"https://api.github.com/users/nvhaiwork/following{/other_user}","gists_url":"https://api.github.com/users/nvhaiwork/gists{/gist_id}","starred_url":"https://api.github.com/users/nvhaiwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvhaiwork/subscriptions","organizations_url":"https://api.github.com/users/nvhaiwork/orgs","repos_url":"https://api.github.com/users/nvhaiwork/repos","events_url":"https://api.github.com/users/nvhaiwork/events{/privacy}","received_events_url":"https://api.github.com/users/nvhaiwork/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T16:12:24Z","updated_at":"2015-09-14T16:12:24Z","body":"```\r\nprivate class UploadImageAsyncTask extends AsyncTask {\r\n\r\n    @Override\r\n    protected void onPreExecute() {\r\n        super.onPreExecute();\r\n\r\n    }\r\n\r\n    @Override\r\n    protected Boolean doInBackground(Void... voids) {\r\n\r\n\r\n        boolean isSuccess = upload api;\r\n        if (isSuccess) {\r\n\r\n            Glide.get(getActivity()).clearDiskCache();\r\n            Glide.get(getActivity()).clearMemory();\r\n        }\r\n\r\n        return isSuccess;\r\n    }\r\n\r\n    @Override\r\n    protected void onPostExecute(Boolean aBoolean) {\r\n        super.onPostExecute(aBoolean);\r\n\r\n        if (aBoolean) {\r\n// Url Glide.with(fragment).load(strCoverUrl).dontAnimate().placeholder(R.drawable.img_splash_bg).into(imvCover);\r\n}\r\n}\r\n}\r\n```\r\n\r\nSure load image after clear cache.\r\nThe image just refreshed if I force close my app(close app by 'recent view')."}}