richdynamix / magestead

The Vagrant Solution for Magento Developers
81 stars 29 forks source link

Add parameters to Magento2 cache command #63

Closed svossen closed 8 years ago

svossen commented 8 years ago

Is it possible to add parameters to the cache:cleanand cache:flush command? For example, with Magento2 I can use ./bin/magento cache:clean layout to just clean the layout cache.

I like to clean just specific parts of the cache to make sure the load time after the cache clean is as short as possible.

richdynamix commented 8 years ago

Yeah that shouldn't be a problem 👍 I won't have time till tonight to do it but will get it in ASAP.

richdynamix commented 8 years ago

@svossen Although I have still to update the docs, cache type params can now be added to the cache commands. i.e. magestead cache:clean config The command only expects one param so to include the comma separated list of types you can incapsulate this in single quotes i.e. magestead cache:clean 'config layout'

The params now work on all cache commands.

svossen commented 8 years ago

Awesome, thank you!