newsletter emailing

Stay on top with regular WordPress updates.

Subscribe to our newsletter(s) and get the latest stories in your mailbox!

greengeeks

Performance boost for WooCommerce onboarding code on large sites

Author:

Date:

If you have a large site, you probably noticed wp-admin slowing down a lot with the later versions of WooCommerce. WooCommerce have been working towards optimising their code, but they still leave some gremlins in there.

In this case, they have a piece of code which checks to see if ‘products exist’ already to determine whether some onboarding stuff should be called or not.

The mistake they make is that they use WP_Query to fetch 1 product and WP_Query will sort the products by date by default. They don’t actually care about the order, they only care if at least

This is the first part of the article

Performance boost for WooCommerce onboarding code on large sites

seopressbig