-
Author
-
September 22, 2017 at 17:21 #174399rickyParticipant
Hey folks,
Per my web host, WPEngine, Kleo has been generating thousands of hits to admin-ajax.php. Here are some log entries:
16014 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=0 HTTP/1.0 10847 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=1 HTTP/1.0 2362 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=2 HTTP/1.0 1571 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=5 HTTP/1.0 1476 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=4 HTTP/1.0 1191 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=3 HTTP/1.0 1148 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=19 HTTP/1.0 710 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=8 HTTP/1.0 672 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=11 HTTP/1.0 599 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=28 HTTP/1.0
The above log entries are from the past 24 hours, and in the past 7 days this theme has made requests to
admin-ajax.php
over 148,000 times.What can I do to reduce these calls? They are leading to 504’s.
September 23, 2017 at 15:46 #174506Kieran_SQModeratorHi,
Sorry to hear you’re having issues with admin-ajax calls. Can you let me know how many users you have on your site?
You can try the following to reduce the impact on admin-ajax
– Limit or disable Heartbeat, you can do this with a plugin from the repository or use the below snippet in your KLEO Child theme’s functions.php file
COPY CODEadd_action( 'init', 'stop_heartbeat', 1 ); function stop_heartbeat() { wp_deregister_script('heartbeat'); }
– Go to WP Admin > Theme Options > BuddyPress > Scroll to: AJAX refresh interval and set the number much higher than 20000. 20000 = 20 seconds, try using 60000 to 180000.
Let me know how this goes,
Thanks,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 25, 2017 at 23:33 #174757rickyParticipantHey folks,
I did the following:1. Added the code to functions.php. No change in frequency.
2. Adjusted the AJAX refresh interval to 180000. No change in frequency.
3. Took the function out and added the Heartbeat Control plugin with the options set as “Disable Everywhere” and override heartbeat frequency set at 60 seconds. No change in frequency.So I disabled notifications completely by setting the AJAX refresh interval to 0 and it’s still growing.
Thoughts?
September 25, 2017 at 23:37 #174758Kieran_SQModeratorHi,
Really sorry to hear that those steps didn’t resolve this issue, I am going to flag this now to one of our developers to look into more closely.
Please update this ticket with newly created admin credentials for debugging purposes.
Thanks,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 26, 2017 at 16:51 #174838RaduModeratorHi,
At this moment, just logged to your site and I’ve left for 7-10 minutes the homepage open waiting to see if there it’s made any call… no call those seem to be disabled
According to your log, seems the kleo notifications to be called to frequent, just add AJAX refresh interval* 120000 interval there (2 minutes) and most important, if you have any cache,minification could flare service pat attention there, cuz maybe you do changes by some resources are cached and not reflect your changes immediately.
At this moment logged in as a user I cannot see the network activity any ajax call.
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.