Site is very slow; wp-cli profile says rest_api_init is taking 3 seconds… how to fix?

Looking at the full output from wp-cli `profile hook rest_api_init –spotlight`, the worst performing callbacks are both from WooCommerce: `Automattic\WooCommerce\Admin\API\Init->rest_api_init()` and `Automattic\WooCommerce\RestApi\Server->register_rest_routes()`.

Have I tried disabling the WooCommerce plugin? Not yet (because I need its functionality, of course), but I assume it would fix it. But, WooCommerce is a really well-tested, first party product. It should work great.

How can I determine why (apparently) WooCommerce is increasing my load times by like three whole seconds?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here