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 generated *Extension classes when extension_attributes.xml is changed #50

Closed Vinai closed 5 years ago

Vinai commented 5 years ago

When a new extension attribute is defined or the type of an existing extension attribute is changed, the generated extension attributes class needs to be deleted (e.g. Magento\Catalog\Api\Data\ProductExtension). Ideally the watcher would determine the type that needs to be deleted and remove only that one class, but that would require parsing and diffing, and I think that's more effort than it's worth. Probably it's more stable and fast enough to simply remove all generated *Extension classes in generated/code when an extension_attributes.xml file is changed.

Vinai commented 5 years ago

Implementing in upcoming release 1.0.4