mage2tv / magento-cache-clean

A faster drop in replacement for bin/magento cache:clean with file watcher
BSD 3-Clause "New" or "Revised" License
532 stars 63 forks source link

Clean config cache when app/etc/env.php changes #46

Closed JonasWijne closed 5 years ago

JonasWijne commented 5 years ago

Feature request: add cleaning of the config cache when app/etc/env.php changes

Vinai commented 5 years ago

That's a good point. So far I haven't implemented that, because the cache clean utility reads the cache storage configuration from the app/etc/env.php file, and when they are changed, the process would need to be restarted. I didn't want to give the impression as if such changes would be picked up and applied automatically on the fly.

However, since any other values might also be in the env.php file, it sure would make sense to flush the config cache when it's changed. This is something I'll add.

Vinai commented 5 years ago

This is included in the 1.0.3 release.