Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter levibuzolic

    (@levibuzolic)

    First problem to solve is both check_username_password and check_api_key trigger HTTP requests even if their respective settings aren’t set. ie. I’m using an API key, but we still fire off a wp_remote_get with those query variables empty!

    So, ideally if $username and/or $password isn’t set, exit immediately with return false.

    Same goes for check_api_key — if there is no $api_key don’t fire off the request.

    Next thing to do would be to cache the results of these methods locally fox X seconds or unless the details change. That way the requests are only made every so often, and only forcibly rechecked when required.

    Anonymous User 12640152

    (@anonymized-12640152)

    Thanks for the suggestion, we will look into it.

    Anonymous User 12640152

    (@anonymized-12640152)

    Can you upgrade to the new version 1.7.0? All this should be fixed now. Thanks for the suggestions!

    I have the same problem on version 1.7.2, it became unusable (even if it works) because every admin page has a bunch of very slow WP_Http->get() which makes the admin very slow in general.

    The query monitor says :
    GET https://api.sendgrid.com/api/mail.send.json 400 Bad Request

    Any ideas ?

    I also see a similar problem in my admin area

    GET https://api.sendgrid.com/api/mail.send.json
    400 Bad Request
    curl
    
    GET https://api.sendgrid.com/v3/stats
    400 BAD REQUEST
    curl

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin adds ~2 seconds load time to admin pages’ is closed to new replies.