Skip to content

Commit

Permalink
[HttpKernel] changed cache warmup to be executed even in the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 7, 2011
1 parent 5be0baf commit b76eec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Kernel.php
Expand Up @@ -506,7 +506,7 @@ protected function initializeContainer()
$this->container = new $class();
$this->container->set('kernel', $this);

if (!$fresh && 'cli' !== php_sapi_name()) {
if (!$fresh) {
$this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir'));
}
}
Expand Down

0 comments on commit b76eec7

Please sign in to comment.