Support » Plugin: BuddyPress Desktop Notification » Maximum server resources

  • Resolved blenderitalia

    (@blenderitalia)


    Hi, I would like to use your plugin but when I activate it after a while the performance of the server starts to go to the maximum and the site stops, what can it depend on? is it solvable?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, I would like to use your plugin but when I activate it after a while the performance of the server starts to go to the maximum and the site stops, what can it depend on? is it solvable?

    Plugin Author websupporter

    (@websupporter)

    Hi blenderitalia,
    when you are logged in, the plugin performs an Ajax-Request every five seconds to search for new notifications for a user. Depending on your server capabilities and how many users are logged in at the same time, this can become quite expensive., you could use the dn_js_interval filter, to slow down the Ajax-Requests, which could help, for example

    add_filter( 'dn_js_interval', function() {
    
         return 20000;
    } );

    This would perform an Ajax-Request only every 20 seconds.

    I hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Maximum server resources’ is closed to new replies.