Skip to content

Add optionnal parameter to cache:clean and cache:flush to exclude type(s) #35847

@Nuranto

Description

@Nuranto

Description (*)

In some occasions (deployment of a new version for instance), we may want to purge all cache except Full page cache.
This forces us to run cache:clean or cache:flush with the list of all types except full_page. Would be nicer to be able to exclude a type in those commands.

Benefits

Simpler syntax, no need to change deployment code when a new type of cache is added by some extension.

Example

At the moment we use :
./magento cache:flush config layout block_html collections reflection db_ddl compiled_config eav customer_notification config_integration config_integration_api config_webservice translate adyen fishpig_wordpress

This feature request would allow to use :
./magento cache:flush --exclude full_page

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Grooming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions