Cache must be cleared before it's warmed up

See:
http://symfony.com/doc/current/deployment.html#d-clear-your-symfony-cache
This commit is contained in:
Rok Andrée 2017-06-29 14:51:31 +02:00 committed by GitHub
parent 15274524b2
commit 2758eadff1

View File

@ -102,6 +102,12 @@ task('deploy:assetic:dump', function () {
}
})->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 @@ task('deploy', [
'deploy:vendors',
'deploy:assets:install',
'deploy:assetic:dump',
'deploy:cache:clear',
'deploy:cache:warmup',
'deploy:writable',
'deploy:symlink',