• Resolved trotsky

    (@trotsky)


    All of my site pages (including WP dashboard) are loading very slowly. I installed wp-cli and used the profile command. 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 supposed to be 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? And/or disable the WooCommerce REST API, even though I don’t have any API keys in the list and the Legacy API is unchecked?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    WooCommerce extends the WordPress REST API. Hence you can use something like: https://de.www.ads-software.com/plugins/disable-json-api/ to disable the WooCommerce endpoints. That should tell you more.

    Kind regards,

    Thread Starter trotsky

    (@trotsky)

    Thanks for the reply. Unfortunately installing and activating that plugin did not make any difference.

    Automattic\WooCommerce\RestApi\Server->register_rest_routes() is still by far the slowest callback, and it’s still running even with the Disable REST API plugin active.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce REST API causing long load times’ is closed to new replies.