diff --git a/CHANGELOG.md b/CHANGELOG.md index e8b622e85..8e3012c15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - Improved `config:current` output (print each host's current release) +- Fixes cache clearing in the Symfony recipe (now runs both cache:clear and cache:warmup) ### Fixed - Fixed bug where `ParallelExecutor` threw an error when custom options were added diff --git a/recipe/symfony.php b/recipe/symfony.php index 6ac0ea735..402180f9a 100644 --- a/recipe/symfony.php +++ b/recipe/symfony.php @@ -102,6 +102,12 @@ } })->desc('Dump assets'); +/** + * Clear Cache + */ +task('deploy:cache:clear', function () { + run('{{env_vars}} {{bin/php}} {{bin/console}} cache:clear {{console_options}} --no-debug --no-warmup'); +})->desc('Clear cache'); /** * Warm up cache @@ -134,6 +140,7 @@ 'deploy:vendors', 'deploy:assets:install', 'deploy:assetic:dump', + 'deploy:cache:clear', 'deploy:cache:warmup', 'deploy:writable', 'deploy:symlink',