maintainCache method

void maintainCache()

Tasks that ensures the cache is in a good condition. Should be called whenever an operation updates the cache.

Implementation

void maintainCache() {
  /// We only want to do this once per run.
  if (_hasMaintainedCache) return;
  _hasMaintainedCache = true;
  _ensureReadme();
  _checkOldCacheLocation();
}