magento-cache-clean icon indicating copy to clipboard operation
magento-cache-clean copied to clipboard

Magento modules symlinked into vendor from outside of the Magento Basedir are not watched by this module

Open gwharton opened this issue 6 months ago • 4 comments

The

\Magento\Framework\Component\ComponentRegistrar->getPaths('module')

command returns paths outside of the magento basedir when modules are symlinked in by composer into vendor from outside of the magento basepath.

The removal of basepath from these modules path (who's path doesnt start with basepath) causes the path to be butchered by removing a fixed length string (length of basepath + 1) from the beginning of the path.

https://github.com/mage2tv/magento-cache-clean/blob/20c729577afdb2c2c39f7c5b332386c55349dfdb/src/cache/config/php.cljs#L38-L58

gwharton avatar Aug 25 '24 09:08 gwharton