magento2-regenerate_url_rewrites icon indicating copy to clipboard operation
magento2-regenerate_url_rewrites copied to clipboard

Generate only category urls without associated product urls

Open jasuten opened this issue 5 years ago • 2 comments

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?

jasuten avatar Mar 29 '19 01:03 jasuten

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

olegkoval avatar Mar 29 '19 09:03 olegkoval

Will this feature be added?

ikdekker avatar Nov 02 '19 09:11 ikdekker