Closed
Description
Description
When running
bin/console cache:clear -vvv
the output is typically
// Clearing the cache for the dev environment with debug true
// Warming up cache...
// Removing old build and cache directory...
// Finished
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
You get the same level of verbosity as you do with just -v
.
What could happen here is we could print:
- which warmers are running
- how much time each one took
This would allow to demistify what is the clear cache doing and what's taking so long.
Example
bin/console cache:clear -vvv
// Warming up cache...
^ "Symfony\Bundle\FrameworkBundle\CacheWarmer\CachePoolClearerCacheWarmer" - 230ms
^ "Symfony\Bundle\FrameworkBundle\CacheWarmer\ConfigBuilderCacheWarmer" - 13ms
^ "Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer" - 23ms
etc.