Why saving a large category stalls the Magento admin
A merchandiser opens a category holding several thousand products, changes its name, and clicks Save. The admin spinner keeps running. The delay often has nothing to do with the category's own data. On save, Magento Open Source can regenerate URL rewrites for the category and for each product assigned to it, and the work grows with catalog size and with the URL settings that decide how many rewrite paths each product receives. This page explains that cause, the setting that stops rewrite generation on save, and what that setting changes for product URLs, so your team can decide whether to use it before a large merchandising change goes live.
Each product can end up with a rewrite for every category it belongs to, so a product assigned to several categories can carry multiple URL paths alongside its base path. When a large category is saved, the admin must write and compare those rows across the whole membership, so the load depends on two factors: how many products the category holds and how many categories each of those products sits in. Before changing anything, measure the problem. Time a save of a representative category in a staging copy of the production catalog, and compare it with the same operation in production. Ask your developer which URL settings are active, because those determine how many rewrite paths each product gets and therefore how much work each save creates.
The control is the Generate "category/product URL Rewrites" option in the admin under Stores, Configuration, Catalog, Catalog, Search Engine Optimization. Its configuration path is catalog/seo/generate_category_product_rewrites. When it is set to No, saving a category no longer regenerates rewrites for its products, so the save finishes faster. The trade-off falls on product URLs: category-path URLs, which include the category in the address, stop being created on save, and the storefront will not route them. Before you switch it off, confirm in your version how existing category-path rewrites are handled, decide which old URLs need redirects, and review the change against your SEO plan with the marketing team.
Save-time rewrite options and when each fits
This table compares three ways to handle URL rewrites when a category or product is saved: keep generation on save, turn it off, or run regeneration as a planned task. Read each row against your catalog size, how often category structures change, and how much admin delay your team can accept. The main takeaway is that turning generation off moves the work into a step you must schedule and verify, so product URLs stay correct only if that step runs.
| Option | When it fits | What it changes for product URLs | What the team must do afterward |
|---|---|---|---|
| Keep generation on save | Smaller catalogs and categories that change rarely, where storefront URLs must update at once. | Each save rebuilds rewrites for affected products, so new category paths appear immediately. Saves on large categories take longer. | Time a save on a large category in staging, then confirm sample product URLs resolve on the storefront. |
| Turn generation off on save | Large categories whose saves stall the admin, or bulk category edits run in one batch. | Saved URL keys do not produce rewrites straight away, so product URLs can return not-found errors or old paths until regeneration runs. | Schedule regeneration before the store reopens, check sample product URLs, and confirm the redirect setting you chose. |
| Planned regeneration task | Stores that must turn generation off during trading hours but still need correct URLs by a set time. | Rewrites for the affected categories and products are rebuilt in one controlled run outside peak trading hours. | Log which categories were saved, run regeneration in a maintenance window, and sample URLs afterward. |
| Save-time redirect option | Stores with inbound links or search rankings on existing product and category URLs. | Old URLs redirect to new ones only if the redirect option is on when the URL key changes, so the choice must match the plan. | Confirm the option in your version's catalog SEO settings and check that old URLs return the expected redirect. |
| Rewrite table cleanup | Catalogs with frequent category moves, where stale rewrites build up over time. | Stale rows can point to old category paths until they are rebuilt from the current category tree. | Set a periodic cleanup, check the rewrite table before large imports, and document the procedure for the team. |
Configuring the setting and verifying product URLs
This sequence changes the save-time rewrite setting in a test environment first, then confirms that category and product URLs still resolve and that rewrites are created by the process your team has planned. It produces a documented change, a before and after record of the URL rewrite grid, and a verified storefront.
Back up the code and database
A developer or platform engineer takes a full backup of the database and the codebase, including the environment configuration in
app/etc/env.php, before any setting changes. Store the backup location with the change record and restore it into a non-production copy to confirm it works. The step is done when the restore has been tested and the backup reference is written into the change ticket.Record the current rewrite baseline
Before changing anything, the store administrator opens the URL rewrite grid under Marketing in the Admin and filters it for category and product entries. Note the total record count, then list sample product and category URLs from the catalog, and open each storefront page to confirm it loads. Confirm the menu path in your version. The step is done when the baseline sheet lists each sample URL and its current result, so later checks have a fixed point of comparison.
Change the save-time generation setting
In the Admin, go to Stores, then Configuration, then Catalog, and open the Search Engine Optimization group. Find the setting that controls whether category and product URL rewrites are generated when an entity is saved, and set it to the value your plan calls for. Confirm the exact label and the config path in your version against Adobe's configuration documentation, and note which scope (default or store view) you changed. The step is done when the saved value is visible in the Admin and the change is logged in the ticket.
Flush caches and confirm the value
Clear the Magento cache from the Admin System menu, or run
bin/magento cache:flushon the server, so the application reads the new value. Then confirm the setting withbin/magento config:showusing the config path you verified in the previous step, and check each scope you changed in the Admin. The step is done when the command output and the Admin screens show the new value at every scope where it applies.Save a test category with many products
In a staging copy of the store, choose a category that holds a large product set, ideally a copy of a production category with similar size. Edit one field, save it, and note how long the Admin takes to return to the edit screen. Compare that with the same save before the change, and record any errors shown in the browser or in the Magento logs. The step is done when the save completes and the before and after observations are written into the test record.
Check product URLs on the storefront
Open each storefront product and category page from the baseline sheet and confirm it loads at the expected URL with the category path and URL suffix your design uses. Then change the URL key of one test product and check whether the old address redirects to the new one. Redirect behavior depends on how the setting and your save-time options are configured, so record what actually happens. The step is done when every sampled URL returns the expected page or redirect.
Review the URL rewrite grid
Return to the URL rewrite grid and compare its record count and sample entries with the baseline. Look for missing product or category rewrites, and confirm that new or changed entities receive rewrites through the process your team planned, such as a scheduled job or indexer step defined in the design. Check the process against Adobe's documentation for your version. The step is done when each gap is either explained by the plan or logged as a defect with an owner.
Repeat the checks in the target environment
Verify the change in the target environment as well as staging, because data volume, cache layers and scheduled jobs often differ between them. Repeat the baseline, storefront and grid checks in production during the agreed change window, with the backup in place and the same sample list. The step is done when production results match the staging record, or each difference is explained and accepted by the store owner.
What turning off save-time rewrites changes for product URLs
Turning off save-time rewrites moves URL work out of the admin save and into a separate process. The six risks below show where that change appears on the storefront, in search results, and in cached pages. Confirm each one in staging before you change the setting in production.
New products and moved categories
With save-time generation off, a new product or a category moved under a new parent may not have a current URL rewrite when it first goes live. Storefront links then depend on whether a later process regenerates the missing rewrites. Before go-live, test one new product and one moved category on the storefront and confirm that each URL resolves. Ask your team which job or command creates the missing rewrites in your version and how often it runs.
Old URLs after key changes
Changing a URL key or moving a category can break links that customers, search engines and campaigns already use. With save-time rewrites off, the redirect from the old path to the new one may not be created at the moment of the save. Confirm which redirect behavior applies to category and product URL changes in your version. Then test a sample of high-traffic old URLs, taken from your analytics, before the change goes live.
Redirects and canonical tags
Canonical tags and redirects depend on the rewrite that maps each product to its category path. If that mapping is stale, a page can point its canonical tag at a URL that redirects or returns an error. Check canonical output on products in several categories, including products assigned to more than one category. Confirm that redirects resolve in a single hop so search engines do not follow chains.
Search and sitemaps lag
Search results, category listings and XML sitemaps read from indexes and generated files that refresh on their own schedule. A product that is live but missing from the search index or the sitemap is hard to find for shoppers who arrive from search. Confirm the indexer mode for catalog and search indexes, the cron job that regenerates the sitemap, and how long a new product takes to appear in each.
Cache invalidation differs
Full-page cache invalidation follows catalog events, and a rewrite that is not regenerated on save can change which cached pages need purging. Stale cached pages may keep serving an old URL after a category move. Self-managed stores typically use Varnish as the full-page cache, so test purge behavior after a category move and confirm the invalidation rules in your Varnish configuration.
Varnish cache docsOwnership and rollback
Turning off save-time generation moves URL work into a separate step that someone must own. Write down who runs it, when it runs, where its results are logged, and how a bad URL change is reversed. Ask for a documented rollback that restores previous URL keys and rewrites, and rehearse it in a test environment before the setting changes in production.
How the approach differs by catalog and change pattern
A stable catalog changes rarely, so keeping rewrite generation on save is usually sufficient for day-to-day edits. The planned regeneration routine then works as a scheduled check, run after structural changes such as a new category tree, a URL key policy change or a store-view change that affects paths. Most of the risk sits in decisions made before launch, when URL keys are set and cannot be changed cheaply later.
- Save-time generation stays on: Single category edits are small enough that the admin stall is unlikely to matter.
- Regeneration is event-driven: Run the routine after URL policy changes, category moves or other structural work, and log each run.
- The catalog manager owns URL keys: Changes after launch create redirects that must be tracked and maintained.
- Redirects are reviewed after moves: Confirm that renamed or moved categories produce permanent redirects from previously indexed URLs.
- Confirm the commands for your release: Check the exact admin path and regeneration command in Adobe's documentation for your version.
Before go-live, save your largest category in a test environment and confirm the admin completes the save without a timeout.
A catalog that is reorganized often or loaded through bulk imports produces many rewrite changes in a short period. Generating rewrites on every save during those jobs is where the admin stalls and imports slow down. The usual pattern is to plan a window in which save-time generation is changed, run the bulk work, and then run a regeneration as a controlled job with a success check. The sequence needs to be tested, because the order of steps decides whether URLs end up complete.
- Plan the setting window: Decide in advance when save-time generation is changed, who changes it and who restores it.
- Put the steps in the import runbook: Include the restore step so the setting is not left changed after the job.
- Check for URL key collisions first: Duplicate URL keys created by imports cause errors that are easy to miss before regeneration.
- Track rewrite table growth: Ask the partner how rewrite row counts are measured and how the store is watched as the catalog grows.
- Give merchandising sign-off: The platform team runs the process, but merchandising approves the category structure it produces.
After a test import, confirm the restore step ran and that a sample of new product and category URLs resolve correctly.
A multi-store setup with several URL structures adds scope to the problem. The save-time setting is configured per scope, so a value set at default scope can be overridden at website or store-view scope. Each store view produces its own rewrites, so a regeneration that covers one store does not automatically cover the others. The team must check each scope and confirm that the regeneration method it uses covers every store it needs to reach.
- Check the setting at every scope: Website and store-view overrides can disagree with the default value.
- Regenerate by store: Confirm in the Adobe documentation for your version how regeneration handles each store root and scope.
- Fix URL structures before launch: Changing a store's root path, suffix or URL key pattern after launch becomes a redirect project.
- Plan for shared categories: A category assigned to several stores creates rewrites in each, so large shared trees multiply the work.
- Name a store architect: One owner should approve the URL structure for each store and the scope settings that go with it.
For each store view, confirm that a category save and a sample product URL resolve correctly before go-live.
Where rewrite generation sits in the category save flow
The diagram starts when an administrator saves a category in the Magento Open Source admin. Magento writes the category and its attribute data to the database first, then checks the store setting that controls whether category and product URL rewrites are generated on save. When generation is on, rewrite rows for the category and its products are rewritten in the URL rewrite table during the save request, which is where a large catalog can stall the admin. When generation is off, the save finishes without rewrite work, and product URLs keep their existing rewrites until they are regenerated. Confirm the setting's location and its effect in the configuration guide for your version before you change it.
Save path with the rewrite generation decision and its two branches.
Operational and security considerations for URL changes
Changing how Magento generates URL rewrites affects every product and category URL, so the setting needs the same controls as other production configuration. The cards below cover who may change it, how the change is recorded, what to back up first, and when the change runs relative to cron and maintenance windows.
Restrict who can change rewrite settings
Changing the setting that controls rewrite generation on save is a configuration edit with direct effect on storefront URLs. Limit admin access to the roles that manage catalog configuration, and review who holds those roles, especially full administrator accounts. Confirm in your own environment which admin roles can reach the Stores configuration section, since role setup is controlled by your store's admin access model.
Varnish cache guideRecord every configuration change
Treat the change as a tracked release item with a named owner, a reason, and a rollback value written down before the edit. Store the configuration in your deployment pipeline where your team can, so that changes go through review rather than being made by hand in the admin. Confirm with Adobe's documentation which admin actions and configuration changes are logged by default in your installed version, rather than assuming coverage.
Back up before bulk regeneration
Regenerating rewrites for a large catalog rewrites URL records that inbound links, redirects and search engines depend on. Take a database backup and a copy of the URL rewrite table before any bulk operation, and confirm that you can restore it within your recovery target. Test the restore on a staging copy so the procedure is known before it is needed in production.
Schedule around the maintenance window
Save operations on large categories can hold the admin busy for a long time, so schedule them inside an agreed maintenance window with customer-facing traffic at its lowest. Check that no indexer, cron job or message queue consumer is running a heavy task at the same time. Confirm with your operations team how long cron runs, indexing and queue processing take on your current catalog before you pick the window.
Coordinate with cron and queues
Rewrite work and index updates compete with scheduled jobs for database and PHP capacity, and a long-running job can overlap the next scheduled run. Review the cron schedule and queue consumer settings before the change, and avoid starting a large save while a backlog is still draining. Confirm the cron and consumer behavior for your version against the Magento Open Source documentation on your installed release.
Check the release line before you change
Rewrite behavior and admin tooling can differ between patch levels, so a change tested on one version can behave differently on another. Confirm that your staging environment runs the same Magento Open Source release line and patch as production. Adobe lists the supported 2.4.x releases and their end of regular support dates, which should guide when a version change is planned.
Lifecycle policyQuestions buyers ask about slow category saves
Is it safe to turn off URL rewrite generation on category save?
It can be safe, but only with a planned process for the URLs the setting would have created. Turning off the setting stops Magento from regenerating category and product rewrite records each time you save. Existing rewrites stay in place. What changes is that new or renamed categories and products may not get their URL rewrites created on save, so storefront links and redirects can break if nobody creates them. Before switching, confirm which URL keys your team will change, whether customers or search engines link to old paths, and when rewrites will be rebuilt. Test the change on a copy of the catalog first, and check a sample of old and new URLs on each store view.
What does it cost to fix slow category saves?
Most of the cost is skilled engineering and testing time, because the setting ships with Magento Open Source and carries no license fee. Your team or a partner is paid for diagnosing the slow save, choosing the rewrite workflow, writing any rebuild or import steps, and checking storefront URLs. Diagnosis, procedure design and the first test cycle are one-time costs. Rewrite handling for later large category changes is recurring. Costs rise with the number of categories and products, how often URL keys change, the number of store views and how many redirects must be kept. Ask any quote to state the written scope, the store views covered, the test environment used and what handover documentation is delivered.
How long does the fix take for a large catalog?
The duration depends on the catalog and on how changes are approved, so no fixed figure applies. The main drivers are the number of categories and products, the number of store views that share URL keys, whether the URL structure needs redesign, and how long your change control process takes to approve a production change. A test store that matches production also affects the timeline, because each proposed workflow needs a full run there. Ask for a schedule with milestones in the written scope, including approval checkpoints and a date for the production change, so the work can be planned around your release calendar.
Can our internal team fix slow category saves without a partner?
Yes, if your team has Magento administration and PHP experience, a test copy of the store and a change process that can approve configuration and deployment changes. The work includes reproducing the slow save, deciding how rewrites will be created after large changes, checking redirects and confirming the result on each store view. A partner adds the most value when the team lacks recent Magento experience, the catalog has many store views, or several extensions save categories in ways nobody has documented. Before deciding, confirm who owns admin configuration, whether a deployment pipeline exists and who will check URLs after each change.
What should we provide before starting a category save fix?
Prepare three things before the work starts. First, a catalog export that includes the category tree, URL keys, parent relationships and store view assignments, so the current URL state can be compared before and after the change. Second, your current URL structure and any redirect rules, including the most-visited landing pages from your analytics. Third, a test store that mirrors production configuration, extensions and data volume closely enough to show real save times. Also provide a list of tools or integrations that import or save categories, such as ERP or PIM connectors, since each one can trigger rewrite generation in its own way.
Does a Magento upgrade reset or change this setting?
Do not assume the setting behaves the same way after an upgrade. Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, and its upgrade guide names customizations, extension count, third-party integrations and coding practices as drivers of upgrade effort. Custom code that generates URLs, or an extension that saves categories, can interact with rewrite generation in ways that change after a patch. Check the configuration value and the rewrite behavior on the test store after every upgrade, and rerun your URL checks. The Upgrade Compatibility Tool referenced in the guide can help identify code that needs attention before the upgrade.
Which Magento Open Source versions should we plan around?
Plan around the end of regular support dates Adobe publishes for each 2.4.x release. Adobe's lifecycle policy gives each release three years of standard support from general availability. Regular support ends on August 11, 2026 for 2.4.6, May 31, 2027 for 2.4.7, May 31, 2028 for 2.4.8 and May 31, 2029 for 2.4.9. Magento Open Source 2.4.9 was released in May 2026. A fix that depends on a specific rewrite workflow should be tested on the version you will run after the next planned upgrade, not only on the version running today, so the setting is verified on the line your store will stay on.
Does turning off rewrite generation change the product URLs customers see?
It does not change URLs that already exist, but it changes what happens when a product or category is created, renamed or moved. With the setting off, a saved product or category may not get the URL rewrite record that makes its friendly URL resolve, so customers and search engines can hit a 404 or an outdated path. Changing a URL key without a matching redirect breaks the old link either way. Confirm with your SEO lead which URL patterns must stay stable, which redirects must be created in the same change and who checks the storefront after each import, so product URLs stay consistent across all store views.
How DeployOpen scopes and delivers a category save fix
DeployOpen approaches slow category saves as a scoped engineering task on your own Magento Open Source installation. We first confirm where the time goes, then agree in writing how rewrite generation will be changed, tested and documented. The work runs inside your infrastructure, and ongoing support is available as a retainer.
How we scope
- Review the store's catalog size, category depth and URL key history to see how many rewrites a typical save regenerates.
- Confirm the admin save path, cron and indexer setup, and whether the store relies on product URLs that must keep working.
- Agree in writing which rewrite behavior changes, which URL decisions stay with your SEO owner, and what the engagement excludes.
How we build
- Apply the documented configuration change for category and product rewrite generation on save, and record the exact setting values.
- Where regenerated URLs are still needed, plan a scheduled step or custom module that handles them outside the admin save request.
- Test saves on a staging copy of your catalog, comparing admin response time and URL rewrite table contents before and after the change.
How we hand over
- Deliver a written runbook covering the setting, its effect on product URLs, and the steps to regenerate rewrites when needed.
- Document test results, the staging catalog used, and the rollback steps your team should follow if an admin save misbehaves.
- Walk your developers and merchandisers through the new save behavior so product URL changes are expected and reviewed.
How we support
- Check the rewrite behavior again after each Magento Open Source patch or upgrade, since upgrade effort depends on customizations.
- Offer ongoing support, upgrades and continuous testing as a retainer after the fixed-scope work closes.
- Confirm with your team which support terms apply, including response expectations, before the engagement begins.

