Admin HTTP requests killing performance

This topic contains 25 replies, has 4 voices, and was last updated by  Stiofan O’Connor 7 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #277133

    wasanajones
    Buyer
    Post count: 180

    geodir is adding about 10 seconds to some page loads in admin due to making update HTTP requests for each geodir plugin activated –

    is there anyway to stop that… I don’t mind manually updating plugins, or checking once a week or something by cron job

    Thanks

    27 POST
    http://wpgeodirectory.com/ 200 OK WP_Http->post()
    wp-includes/class-http.php:576
    wp_remote_post()
    wp-includes/http.php:187
    GD_Plugin_Updater->api_request()
    wp-content/plugins/geodir_advance_search_filters/gd_update.php:1007
    GD_Plugin_Updater->set_single_cache()
    wp-content/plugins/geodir_advance_search_filters/gd_update.php:867
    GD_Plugin_Updater->show_update_notification()
    wp-content/plugins/geodir_advance_search_filters/gd_update.php:843
    do_action(‘after_plugin_row_geodir_recaptcha/geodir_recaptcha.php’)
    wp-includes/plugin.php:524
    WP_Plugins_List_Table->single_row()
    wp-admin/includes/class-wp-plugins-list-table.php:867
    WP_Plugins_List_Table->display_rows()
    wp-admin/includes/class-wp-plugins-list-table.php:535
    WP_List_Table->display_rows_or_placeholder()
    wp-admin/includes/class-wp-list-table.php:1214
    WP_List_Table->display()
    wp-admin/includes/class-wp-list-table.php:1142 Plugin: geodir_advance_search_filters 15 0.9178
    28 POST
    http://wpgeodirectory.com/updates/ 200 OK WP_Http->post()
    wp-includes/class-http.php:576
    wp_remote_post()
    wp-includes/http.php:187
    gd_check_for_messages()
    wp-content/plugins/geodir_advance_search_filters/gd_update.php:536
    apply_filters(‘pre_set_site_transient_update_plugins’)
    wp-includes/plugin.php:235
    set_site_transient()
    wp-includes/option.php:1628
    GD_Plugin_Updater->set_single_cache()
    wp-content/plugins/geodir_advance_search_filters/gd_update.php:881
    GD_Plugin_Updater->show_update_notification()
    wp-content/plugins/geodir_advance_search_filters/gd_update.php:843
    do_action(‘after_plugin_row_geodir_recaptcha/geodir_recaptcha.php’)
    wp-includes/plugin.php:524
    WP_Plugins_List_Table->single_row()
    wp-admin/includes/class-wp-plugins-list-table.php:867
    WP_Plugins_List_Table->display_rows()
    wp-admin/includes/class-wp-plugins-list-table.php:535
    WP_List_Table->display_rows_or_placeholder()
    wp-admin/includes/class-wp-list-table.php:1214
    WP_List_Table->display()
    wp-admin/includes/class-wp-list-table.php:1142

    #277152

    Kor
    Moderator
    Post count: 16516

    Hi wasanajones,

    I’ve just checked with our developer and I’d like to clarify that our plugin only checks for updates every 1 hour and not every request. Well, let us know if you’ve any other specific questions regarding this topic.

    Thanks!

    #277199

    wasanajones
    Buyer
    Post count: 180

    Hi – thanks for prompt response, but I don’t think that is accurate.

    I’m seeing slow admin page loading anecdotally

    I have Query Monitor installed – it is showing cumulative times for loading as well as individual HTTP requests which support what I am experiencing – when I disabled geodirectory addons all times reduced and pages loaded more quickly

    this is a multisite install with geodir activated on primary site and a subsite (not network activated)

    upon page refresh… for both Network Admin and Site Admin

    admin Dashboard shows two http requests from wpgeodirectory and names the first addon activated (ie if advanced search deactivated then ajax dupe alert is the component)

    admin Plugins page shows over 20 HTTP requests from wpgeodirectory which are slowish

    POST
    http://wpgeodirectory.com/
    POST
    http://wpgeodirectory.com/updates/

    there might be a cron that checks your site once an hour, but admin page load generates multiple HTTP requests

    I wouldn’t make a big deal about this – but the pages are visibly slow and you have to wait – like 10+ seconds for the admin page to load when geodir activated, not nearly that much when deactivated.

    #277273

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Can you provide wp-admin and let me know what pages this is happening on?
    I can’t replicate this.

    Thanks,

    Stiofan

    #277307

    wasanajones
    Buyer
    Post count: 180
    This reply has been marked as private.
    #277311

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i dont seems to have access to the plugins, you would probably have to make me a super admin.

    #277352

    wasanajones
    Buyer
    Post count: 180
    This reply has been marked as private.
    #277855

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes i see it happening but it should not be, i suspect one of the other plugins is removing the update cache transient which will make it run over and over. If you can provide FTP info i will be able to check.

    Thanks

    Stiofan

    #277952

    wasanajones
    Buyer
    Post count: 180
    This reply has been marked as private.
    #277960

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I seem to be able to connect but there are no directories, please check.

    Stiofan

    #278092

    wasanajones
    Buyer
    Post count: 180
    This reply has been marked as private.
    #278350

    wasanajones
    Buyer
    Post count: 180

    Hi –

    Sorry for the extra work in trying to access because of login/ftp creds snafu(s).

    In researching transient sets I’m wondering if this is a multisite issue and not necessarily due to some 3rd party configuration. stackexchange thead has some hints http://wordpress.stackexchange.com/questions/237453/can-set-transient-be-used-in-multi-site in not only the function to use, but the caveat about the length of the transient name

    when I look at subsite admin > plugins Query Monitor it shows ‘some’ geodir transients being set – but HTTP requests still firing; and network admin > plugins Query Monitor shows ‘all’ geodir transients sets, but HTTP requests firing also

    possibly due to the order things are loading… but I’m am really just guessing

    all this is about 3 levels beyond my ability…

    thanks

    #278435

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Please check now.

    Thanks,

    Stiofan

    #278536

    wasanajones
    Buyer
    Post count: 180

    Hi – you worked some magic… mind sharing what it was, I’ve got a bunch of other sites to deal with.

    Thanks

    #278549

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    It seems to be something to do with latest WP and multisite, i will add the fix to all addons, for now you can simply copy gd_update.php from advanced search to any other site. (its the first active GD addon that defines the update class)

    Thanks,

    Stiofan

Viewing 15 posts - 1 through 15 (of 26 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket