From 32000d91356ba1b8028dc6a2b6614bb732ef9951 Mon Sep 17 00:00:00 2001 From: matlec Date: Mon, 14 Jul 2025 13:06:12 +0200 Subject: [PATCH] [FrameworkBundle] Make `cache:warmup` warm up read-only caches --- .../Bundle/FrameworkBundle/Command/CacheWarmupCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php index e15e566eb6f51..08e6ebc4d3e37 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php @@ -72,9 +72,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int $kernel->warmUp($cacheDir); } - $preload = $this->cacheWarmer->warmUp($cacheDir); - $buildDir = $kernel->getContainer()->getParameter('kernel.build_dir'); + + $preload = $this->cacheWarmer->warmUp($cacheDir, $buildDir); + if ($preload && $cacheDir === $buildDir && file_exists($preloadFile = $buildDir.'/'.$kernel->getContainer()->getParameter('kernel.container_class').'.preload.php')) { Preloader::append($preloadFile, $preload); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy