8000 [DX][Container] When doing cache:clear with warmup and (very) verbose / debug output, display which warmers are running · Issue #48994 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DX][Container] When doing cache:clear with warmup and (very) verbose / debug output, display which warmers are running #48994
Closed
@dkarlovi

Description

@dkarlovi

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:

  1. which warmers are running
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0