Skip to content

Commit

Permalink
Merge pull request #1283 from Putr/patch-1
Browse files Browse the repository at this point in the history
Cache must be cleared before it's warmed up (Symfony recipe)
  • Loading branch information
antonmedv authored Jul 3, 2017
2 parents bec47e4 + 222fb0d commit e7e3d1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 e7e3d1a

Please sign in to comment.