Admin HTTP requests killing performance
This topic contains 25 replies, has 4 voices, and was last updated by Stiofan O’Connor 8 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 4, 2016 at 8:00 am #277133
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:1142October 4, 2016 at 8:44 am #277152Hi 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!
October 4, 2016 at 11:12 am #277199Hi – 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.
October 4, 2016 at 1:34 pm #277273Hello,
Can you provide wp-admin and let me know what pages this is happening on?
I can’t replicate this.Thanks,
Stiofan
October 4, 2016 at 2:31 pm #277307This reply has been marked as private.October 4, 2016 at 2:40 pm #277311i dont seems to have access to the plugins, you would probably have to make me a super admin.
October 4, 2016 at 3:22 pm #277352This reply has been marked as private.October 5, 2016 at 10:28 am #277855Yes 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
October 5, 2016 at 12:46 pm #277952This reply has been marked as private.October 5, 2016 at 1:03 pm #277960I seem to be able to connect but there are no directories, please check.
Stiofan
October 5, 2016 at 3:53 pm #278092This reply has been marked as private.October 6, 2016 at 6:43 am #278350Hi –
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
October 6, 2016 at 10:42 am #278435Please check now.
Thanks,
Stiofan
October 6, 2016 at 3:51 pm #278536Hi – you worked some magic… mind sharing what it was, I’ve got a bunch of other sites to deal with.
Thanks
October 6, 2016 at 4:37 pm #278549It 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket