docs: public void onCacheClear(boolean memory, boolean disk) {
          final String methodName = "onCacheClear()";
          if (tc.isDebugEnabled())
              Tr.debug(tc, methodName + " cacheName=" + _sCacheName + " memory=" + memory + " disk=" + disk + " " + this);
          if (_enable && this._inMemoryCacheEntryCount != null && memory) {
              this._inMemoryCacheEntryCount.setCount(0);
          }
          if (_csmDisk != null && _csmDisk._enable && disk) {
              if (_csmDisk._objectsOnDisk != null) {
                  _csmDisk._objectsOnDisk.setCount(0);
              }
              if (_csmDisk._pendingRemovalFromDisk != null) {
                  _csmDisk._pendingRemovalFromDisk.setCount(0);
              }
              if (_csmDisk._dependencyIdsOnDisk != null) {
                  _csmDisk._dependencyIdsOnDisk.setCount(0);
              }
              if (_csmDisk._dependencyIdsBufferedForDisk != null) {
                  _csmDisk._dependencyIdsBufferedForDisk.setCount(0);
              }
              if (_csmDisk._templatesOnDisk != null) {
                  _csmDisk._templatesOnDisk.setCount(0);
              }
              if (_csmDisk._templatesBufferedForDisk != null) {
                  _csmDisk._templatesBufferedForDisk.setCount(0);
              }
          }
          if (this._iCacheType == TYPE_SERVLET && (memory || disk)) {
              for (Map.Entry<String, CacheStatsModule> entry : templatesPassed.entrySet()) {
                  CacheStatsModule csm = entry.getValue();
                  if (csm != null && csm._enable) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                          Tr.debug(tc, "***** clear _inMemoryAndDiskCacheEntryCount for template=" + entry.getValue() + " cacheName=" + _sCacheName);
                      if (csm._inMemoryAndDiskCacheEntryCount != null) {
                          csm._inMemoryAndDiskCacheEntryCount.setCount(0);
                      }
                  }
              }
          } else if (_csmObject != null && _csmObject._enable && (memory || disk)) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "***** clear _inMemoryAndDiskCacheEntryCount for cacheName=" + _sCacheName);
              if (_csmObject._inMemoryAndDiskCacheEntryCount != null) {
                  _csmObject._inMemoryAndDiskCacheEntryCount.setCount(0);
              }
          }
      }