public void flushDiskCache(){
synchronized (mDiskCacheLock) {
    long now=System.currentTimeMillis();
    if (now - 1000 < mLastFlushTime) {
      return;
    }
    mLastFlushTime=now;
    if (mDiskLruCache != null) {
      try {
        mDiskLruCache.flush();
        if (DEBUG) {
          Log.d(TAG,"Disk cache flushed");
        }
      }
 catch (      IOException e) {
        Log.e(TAG,"flush - " + e);
      }
    }
  }
}

public void flushDiskCache ( ) { synchronized ( mDiskCacheLock ) { long now = System . currentTimeMillis ( ) ; if ( now - 1000 < mLastFlushTime ) { return ; } mLastFlushTime = now ; if ( mDiskLruCache != null ) { try { mDiskLruCache . flush ( ) ; if ( DEBUG ) { Log . d ( TAG , "Disk cache flushed" ) ; } } catch ( IOException e ) { Log . e ( TAG , "flush - " + e ) ; } } } }
flushes the disk cache associated with this imageprovider object . note that this includes disk access so this should not be executed on the main / ui thread .
