public function CacheWarmerAggregate::warmUp

Warms up the cache.

Parameters

string $cacheDir The cache directory:

Overrides WarmableInterface::warmUp

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php, line 40

Class

CacheWarmerAggregate
Aggregates several cache warmers into a single one.

Namespace

Symfony\Component\HttpKernel\CacheWarmer

Code

public function warmUp($cacheDir) {
  foreach ($this->warmers as $warmer) {
    if (!$this->optionalsEnabled && $warmer
      ->isOptional()) {
      continue;
    }
    $warmer
      ->warmUp($cacheDir);
  }
}