Skip to content

Commit

Permalink
Cache must be cleared before it's warmed up
Browse files Browse the repository at this point in the history
  • Loading branch information
Putr authored Jun 29, 2017
1 parent 1527452 commit 2758ead
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipe/symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -134,6 +140,7 @@
'deploy:vendors',
'deploy:assets:install',
'deploy:assetic:dump',
'deploy:cache:clear',
'deploy:cache:warmup',
'deploy:writable',
'deploy:symlink',
Expand Down

0 comments on commit 2758ead

Please sign in to comment.