The Team23_CleanupEav
module enables you to maintain and cleanup your eav database.
Installation is done via composer
composer require team23/module-cleanup-eav
Now register the module with bin/magento setup:upgrade
.
Some core paths are excluded from being cleaned up in database. You can add more for other modules too inside a di.xml
file.
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Team23\CleanupEav\Model\Config">
<arguments>
<argument name="excludedPaths" xsi:type="array">
<item name="amasty_first" xsi:type="string">amasty_base/system_value/first_module_run</item>
<item name="amasty_last" xsi:type="string">amasty_base/system_value/last_update</item>
<item name="amasty_remove" xsi:type="string">amasty_base/system_value/remove_date</item>
</argument>
</arguments>
</type>
</config>
Extension developers can interact with the Team23_CleanupEav
module. For more information about the Magento extension
mechanism, see Magento plug-ins.
The Magento dependency injection mechanism
enables you to override the functionality of the Team23_CleanupEav
module.
eav:cleanup:media
Compares database and disk space of product images and cleans both of them.eav:cleanup:config-path
Removes orphaned paths in database for core configuration table.eav:cleanup:config-scope
Compare global and scope data for paths, remove the scope entry if identical.