Log in
Model

TableCleaner

Magento\CatalogUrlRewrite\Model\TableCleaner

What it does

This class automatically cleans up URL rewrites from the database when the 'generate_category_product_rewrites' configuration option is disabled.

It removes auto-generated product-category URL rewrites to prevent stale or unnecessary entries from accumulating in the url_rewrite table.

Developers would typically not interact with this class directly as it hooks into Magento's configuration save process.

Public Methods

  • afterSave()