This topic has 5 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #174399
     ricky
    Participant

    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&current_notifications=0 HTTP/1.0 10847 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=1 HTTP/1.0 2362 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=2 HTTP/1.0 1571 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=5 HTTP/1.0 1476 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=4 HTTP/1.0 1191 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=3 HTTP/1.0 1148 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=19 HTTP/1.0 710 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=8 HTTP/1.0 672 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_notifications=11 HTTP/1.0 599 GET /wp-admin/admin-ajax.php?action=kleo_bp_ajax_call&current_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.

    #174506
     Kieran_SQ
    Moderator

    Hi,

    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 CODE
    add_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 solution

    If 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.

    #174757
     ricky
    Participant

    Hey 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?

    #174758
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #174761
     ricky
    Participant
    This reply has been set as private.
    #174838
     Radu
    Moderator

    Hi,

    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
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?