magento2-regenerate_url_rewrites
magento2-regenerate_url_rewrites copied to clipboard
Generate only category urls without associated product urls
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?
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
Will this feature be added?