How to fix slow WooCommerce 6.01 for wp-admin pages

I upgraded Foundthru to the latest WooCommerce and after onboarding (updating the database) it keeps checking if I need to update the database with expensive calls on wp-admin.

On foundthru with 1 million products, this increases wp-admin page load time from 3 seconds to 28 seconds.

My Foundthru site taking 55 seconds to load wp-admin

There’s no easy fix I can apply for this inside Scalability Pro so I had to edit a couple of WooCommerce files to fix this. That should be safe since the next WooCommerce update will overwrite the fixes which will mean onboarding can run again for the next update.

More info about the source files here on this facebook post:

Specifically, the files you need to edit are:

  • /woocommerce/packages/woocommerce-admin/src/Features/OnboardingTasks/Tasks/Products.php
  • /woocommerce/packages/woocommerce-admin/src/Features/OnboardingTasks/Tasks/Appearance.php

You’re looking for lines at the start of 5 different functions that look like this:

$task = new Task( self::get_task() );

Just put the command return; before that line so it becomes:

$task = new Task( self::get_task() );

These edits will be overwritten on the next WooCommerce update when they’ve hopefully fixed this, and because the updates are overwritten it means any required onboarding for the next version will kick in again.

Talk to me
Latest posts by Dave Hilditch (see all)