Optimize and Improve WooCommerce Loading Speed
Updated today
WooCommerce is a plugin that lets us turn our WordPress site into an online store, but we often come across very large, slow sites that require a lot of work and investment to turn them into a fast, responsive platform again.
In addition to the general recommendations for improving WordPress loading speed, below we'll go over some specific tips for speeding up our WooCommerce store.
Disable Geolocation
WooCommerce can identify a visitor's country so it can automatically display that country at checkout. If we only sell in one country, this option is irrelevant. Even if we sell in multiple countries, it's often best to simply set the most common country as the default and disable geolocation.
To do this, go to WooCommerce → Settings, then select Store country/region under the "Default customer location" option.
Optimized databases
WooCommerce generates a significant number of MySQL queries, so keeping our database in good shape is essential.
Using the plugin we recommend, LiteSpeed Cache, we can do the following from the Database option:
● Delete expired transient data
● Optimize tables
● Convert all MyISAM tables to InnoDB using the "Database Table Engine Converter".
Those are the only 3 actions we recommend performing. The rest is up to you.
Enable WooCommerce HPOS
WooCommerce High-Performance Order Storage (HPOS) is enabled by default on new installations starting with WooCommerce 8.2. It lets you create dedicated tables optimized for WooCommerce, instead of using the default table format WordPress uses for posts and pages.
In existing stores, you can enable it from WooCommerce → Settings → Advanced → Features:
Some plugins may not yet be compatible with HPOS. In that case, as shown in the screenshot, WooCommerce will let us know which plugins are incompatible with this excellent new feature.
To review which WooCommerce scripts, styles, and functions are loaded on each page, see the Perfmatters section for WooCommerce on FastWeb.
If you use FlyingPress to cache your store, see the cart and checkout tests in the FastWeb guide.