function CachePreWarmer::preWarmAllCaches

Prewarms all PreWarmable services.

Return value

bool TRUE if a cache was prewarmed, FALSE if there was nothing to prewarm.

Overrides CachePreWarmerInterface::preWarmAllCaches

File

core/lib/Drupal/Core/PreWarm/CachePreWarmer.php, line 72

Class

CachePreWarmer
Prewarms caches for services that implement PreWarmableInterface.

Namespace

Drupal\Core\PreWarm

Code

public function preWarmAllCaches() : bool {
  $prewarmed = FALSE;
  while ($this->preWarmOneCache()) {
    $prewarmed = TRUE;
  }
  return $prewarmed;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.