Skip to content

Commit b5c7ec2

Browse files
committed
[FrameworkBundle][CacheWarmupCommand] Append files to preload
1 parent b5bcabf commit b5c7ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ protected function initializeContainer()
566566
if ($this->container->has('cache_warmer')) {
567567
$preload = (array) $this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir'));
568568

569-
if (method_exists(Preloader::class, 'append') && file_exists($preloadFile = $cacheDir.'/'.$class.'.preload.php')) {
569+
if ($preload && method_exists(Preloader::class, 'append') && file_exists($preloadFile = $cacheDir.'/'.$class.'.preload.php')) {
570570
Preloader::append($preloadFile, $preload);
571571
}
572572
}

0 commit comments

Comments
 (0)