Skip to content

Commit 756df2a

Browse files
committed
bug #61115 [FrameworkBundle] Make cache:warmup warm up read-only caches (MatTheCat)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Make `cache:warmup` warm up read-only caches | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #59703 | License | MIT Commits ------- 32000d91356 [FrameworkBundle] Make `cache:warmup` warm up read-only caches
2 parents 9bdf101 + fb46cca commit 756df2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Command/CacheWarmupCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7272
$kernel->warmUp($cacheDir);
7373
}
7474

75-
$preload = $this->cacheWarmer->warmUp($cacheDir);
76-
7775
$buildDir = $kernel->getContainer()->getParameter('kernel.build_dir');
76+
77+
$preload = $this->cacheWarmer->warmUp($cacheDir, $buildDir);
78+
7879
if ($preload && $cacheDir === $buildDir && file_exists($preloadFile = $buildDir.'/'.$kernel->getContainer()->getParameter('kernel.container_class').'.preload.php')) {
7980
Preloader::append($preloadFile, $preload);
8081
}

0 commit comments

Comments
 (0)