question: public void initDiskCache ( ) { synchronized ( mDiskCacheLock ) { if ( mDiskLruCache == null || mDiskLruCache . isClosed ( ) ) { File diskCacheDir = mCacheParams . diskCacheDir ; if ( mCacheParams . diskCacheEnabled && diskCacheDir != null ) { if ( ! diskCacheDir . exists ( ) ) { diskCacheDir . mkdirs ( ) ; } if ( getUsableSpace ( diskCacheDir ) > mCacheParams . diskCacheSize ) { try { mDiskLruCache = DiskLruCache . open ( diskCacheDir , 1 , 1 , mCacheParams . diskCacheSize ) ; if ( debug ) { Log . d ( TAG , "Disk cache initialized" ) ; } } catch ( final IOException e ) { mCacheParams . diskCacheDir = null ; Log . e ( TAG , "initDiskCache - " + e ) ; } } } } mDiskCacheStarting = false ; mDiskCacheLock . notifyAll ( ) ; } }
target:  Initializes the disk cache.  Note that this includes disk access so this should not be executed on the main/UI thread. By default an ImageCache does not initialize the disk cache when it is created, instead you should call initDiskCache() to initialize it on a background thread.