/** 清除缓存 */
 public static void clearCache() {
   try {
     if (IMImageLoadInstance != null) {
       IMImageLoadInstance.clearMemoryCache();
       IMImageLoadInstance.clearDiskCache();
     }
     if (null != avatarOptionsMaps) {
       avatarOptionsMaps.clear();
     }
   } catch (Exception e) {
     logger.e(e.toString());
   }
 }
 /**
  * Clears disk cache.
  *
  * @throws IllegalStateException if {@link #init(ImageLoaderConfiguration)} method wasn't called
  *     before
  * @deprecated Use {@link #clearDiskCache()} instead
  */
 @Deprecated
 public void clearDiscCache() {
   clearDiskCache();
 }
Example #3
0
 public void clearCache() {
   imageLoader.clearDiskCache();
 }