• Hi, working on performance, noticed that

    Automattic\J\C\Client::_wp_remote_request()

    calling: public-api.wordpress.com/wpcom/v2/sites/xxxx/wcpay/currency/rates
    ?test_mode=0

    is taking up to 1s. Why? I use separate multicurrency plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello mcdeth,

    Thank you for contacting WooCommerce support.

    Could you clarify how you’re measuring the time it takes for the request?
    Are you using a specific tool or method to assess this?

    Additionally, what is your expected performance in this case?
    Understanding that will help determine if there’s an issue that needs further investigation.

    Looking forward to your response!

    Thread Starter mcdeth

    (@mcdeth)

    Hi, I monitor websites with Query Monitor, debug bar and Code Profiler Pro. I’d prefer to disable this functionality, shops do have multicurrency, but they use fixed prices. There are also other multicurrency payment gateways, such as klarna, and they don’t do such requests.

    Plugin Support Shameem a11n

    (@shameemreza)

    Hi @mcdeth

    The API call you mentioned is part of the WooPayments plugin functionality. It fetches the latest currency rates for multi-currency transactions. This call might take up to 1 second depending on various factors such as server response time, internet speed, etc.

    Since you’re using fixed prices with a separate multicurrency plugin and other payment gateways, you can consider disabling the WooPayments’ multicurrency feature. To do so, navigate to Payments > Settings > Advanced Settings and disable Multicurrency. More info: https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#enabling

    Hope this helps. If you have any more questions, feel free to ask.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.