public synchronized void reset ( ) { final String methodName = "reset()" ; this . currentDataGB = 1 ; if ( this . currentDependencyIdGB > 0 ) { this . currentDependencyIdGB = 1 ; } if ( this . currentTemplateGB > 0 ) { this . currentTemplateGB = 1 ; } if ( this . diskCacheSizeInGBLimit > 0 ) { this . diskCacheSizeInBytesLimit = ( diskCacheSizeInGBLimit - this . currentDependencyIdGB - this . currentTemplateGB ) * GB_SIZE ; this . diskCacheSizeInBytesHighLimit = ( this . diskCacheSizeInBytesLimit * ( long ) this . highThreshold ) / 100l ; this . diskCacheSizeInBytesLowLimit = ( this . diskCacheSizeInBytesLimit * ( long ) this . lowThreshold ) / 100l ; traceDebug ( methodName , "cacheName=" + this . cacheName + " diskCacheSizeInBytesLimit=" + this . diskCacheSizeInBytesLimit + " diskCacheSizeInBytesHighLimit=" + this . diskCacheSizeInBytesHighLimit + " diskCacheSizeInBytesLowLimit=" + this . diskCacheSizeInBytesLowLimit + " currentDataGB=" + this . currentDataGB + " currentDependencyIdGB=" + this . currentDependencyIdGB + " currentTemplateGB=" + this . currentTemplateGB ) ; } }
Call this method to reset the disk cache size info after disk clear