Admin-ajax requests


Home Forums Front End PM PRO Admin-ajax requests

This topic is: Not Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22019
    Dawson College
    Participant

    Hi Shamim,

    My browser window was left open all weekend and my server is reporting admin-ajax.hp requests all weekend every minute? We’re not in production yet and there’s no traffic otherwise on my dev server.

    I have the following unchecked.

    Show desktop notification for new messages and announcements?
    Play notification sound on message and announcement received?

    I’m not expecting any traffic at all. I’m slightly concerned when 14,000 students start using this system that it will overload the server with pings.

    Thank you.

    #22036
    shamim
    Keymaster

    add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_filter_ajax_notification_interval', function( $interval ){
        return 2 * MINUTE_IN_SECONDS * 1000;
    });
    

    This will make request every after 2 minutes. You can change 2 to anything you want.

Viewing 2 posts - 1 through 2 (of 2 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.