• Resolved jamedjo

    (@jamedjo)


    HTTP requests called by facebook-for-woocommerce from PHP are adding 2.5s to every wp-admin page view.

    Is it possible to cache these in the database somehow? Do these really need to be called on every single admin page, or could they be limited to relevant pages?

    Screenshot (via Query Monitor): https://ibb.co/TcmKjp1

    Example requests:
    866ms:

    GET	https://graph.facebook.com/v9.0/fbe_business/fbe_installs
    ?fbe_external_business_id=************

    SkyVerge\W\F\API->get_installation_ids()
    wp-content/plugins/facebook-for-woocommerce/includes/API.php:241
    SkyVerge\W\F\H\Connection->update_installation_data()
    wp-content/plugins/facebook-for-woocommerce/includes/Handlers/Connection.php:217
    SkyVerge\W\F\H\Connection->refresh_installation_data()
    wp-content/plugins/facebook-for-woocommerce/includes/Handlers/Connection.php:195

    783ms:

    GET	https://graph.facebook.com/v9.0/fbe_business
    ?fbe_external_business_id=

    SkyVerge\W\F\API->perform_request()
    wp-content/plugins/facebook-for-woocommerce/includes/API.php:111
    SkyVerge\W\F\API->get_business_configuration()
    wp-content/plugins/facebook-for-woocommerce/includes/API.php:339
    SkyVerge\W\F\H\Connection->refresh_business_configuration()
    wp-content/plugins/facebook-for-woocommerce/includes/Handlers/Connection.php:145

Viewing 2 replies - 1 through 2 (of 2 total)
  • stephjacq a11n

    (@stephjacq)

    Automattic Happiness Engineer

    Hi @jamedjo, sorry to hear about the trouble.

    I looked to compare the calls on my test site, but I found none to Facebook when loading admin pages.

    To confirm, is it the HTTP API Calls tab that you’re looking at in Query Monitor?
    Which pages are you visiting in the admin?

    Finally, please confirm that you are using the current version of the plugin, which you can download here: https://woocommerce.com/products/facebook/

    Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adds 3s overhead to every wp-admin page view’ is closed to new replies.