Run cache:pool:clear --all instead of cache:clear in updater to clear really all cache pools, even app ones

This commit is contained in:
Jan Böhmer 2026-03-04 23:33:10 +01:00
parent df3262a3f7
commit f15979ed11

View file

@ -420,7 +420,7 @@ class UpdateExecutor
// Step 11: Clear cache
$stepStart = microtime(true);
$this->runCommand([
'php', 'bin/console', 'cache:clear',
'php', 'bin/console', 'cache:pool:clear', '--all',
'--env=prod',
'--no-interaction',
], 'Clear cache', 120);
@ -489,7 +489,7 @@ class UpdateExecutor
// Clear cache after rollback
$this->runCommand([
'php', 'bin/console', 'cache:clear',
'php', 'bin/console', 'cache:pool:clear', '--all',
'--env=prod',
], 'Clear cache after rollback', 120);
$log('rollback_cache', 'Cleared cache after rollback', true);