Optimize and Improve WooCommerce Loading Speed
Updated 3 weeks ago
WooCommerce is a plugin that allows us to turn our WordPress site into an online store, but we often encounter very heavy, slow sites that require a great deal of work and investment to transform them back into an agile, fast platform.
In addition to the general recommendations for improving WordPress loading speed, below we will detail some specific tips to speed up our WooCommerce store.
Disable Geolocation
WooCommerce can identify the visitor’s country in order to automatically display it during checkout. If we only sell to a single country, this option is irrelevant. And even if we did, it is often preferable simply to set the most common country as the default option and disable geolocation.
To do this, go to WooCommerce → Settings, and under "Default customer location", select Store country/region.
Optimized databases
WooCommerce generates a significant number of MySQL queries, so keeping our database in good condition is essential.
Using the plugin we recommend, LiteSpeed Cache, from the Database option, we can:
● Delete expired transients
● 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 will depend on each individual case.
Enable WooCommerce HPOS
WooCommerce High-Performance Order Storage (HPOS) has been enabled by default in new installations since WooCommerce 8.2, and allows dedicated, optimized tables to be created for WooCommerce instead of using the default table format that WordPress uses for posts and pages.
In existing stores, it can be enabled from WooCommerce → Settings → Advanced → Features:
Some plugins may not yet be compatible with HPOS. In that case, as shown in the screenshot, it will indicate which plugins are incompatible with this excellent new feature.