olegkoval / magento2-regenerate_url_rewrites

Magento 2 extension which add feature of regenerating a url rewrites of products/categories
Academic Free License v3.0
420 stars 117 forks source link

Generate only category urls without associated product urls #86

Open jasuten opened 5 years ago

jasuten commented 5 years ago

Running bin/magento ok:urlrewrites:regenerate --entity-type=category is very slow when there are a lot of products, I'm guessing it is also generating the urls for the products associated with the categories.

Is there a way to skip generating the URLs for the products and only do the categories themselves?

olegkoval commented 5 years ago

Hello @jasuten

Yes, regenerating of a url rewrites of categories includs a regenerating of url rewrites of a products because product url rewrites have direct relationship to category url rewrite (category url path is a part of product url path in this category).

Maybe make a sense to add a key for this specific situation to skip a product url rewrite regeneration when regenerate category url rewrites? So, current workflow will be a default workflow and when you want to skip a category products url rewrite regeneration then you can use key, for example, "--skip-products".

Best regards, Oleg Koval

ikdekker commented 4 years ago

Will this feature be added?