# Ajax Interval Refresh - Menu Notifications & Messages

Source: https://seventhqueen.com/docs/kleo/ajax-interval-refresh-notifications-messages/

Kleo theme has a feature that checks messages and notifications only when BuddyPress plugin is activated.

If your website has significant traffic it may be needed to increase the AJAX interval refresh from** Wp-admin -> Theme options -> Buddypress -> Live notifications interval **and add a higher value like 60000 (60 seconds).

![](https://cdn.seventhqueen.com/docs/media/other/seventhqueen/Theme_options__Kleo_Development__WordPress__2016-12-22_19-03-01.png)

Also there it's a programmatically way to do that by adding the next snippet to : wp-content/themes/kleo-child/functions.php

NOTE: Child theme needs to be installed and activated.

```
/* Stop refresh interval to JavaScript app.js */
add_filter( 'kleo_localize_app', function($data){
    $data['bpAjaxRefresh'] = 0;
    return $data;
} );
```
