From aba5e198057a744bece4355568a2a49939848e07 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 23 Mar 2020 12:03:01 +0000 Subject: [PATCH] Drop frequency of AJAX updates on notifications page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is another page that puts load on the database, so let’s treat it the same as the dashboard. --- app/templates/views/notifications.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/views/notifications.html b/app/templates/views/notifications.html index 7c9bbabc0..d8bfa4bdd 100644 --- a/app/templates/views/notifications.html +++ b/app/templates/views/notifications.html @@ -31,7 +31,8 @@ {{ ajax_block( partials, url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status), - 'counts' + 'counts', + interval=20 ) }} {% call form_wrapper( @@ -82,7 +83,8 @@ partials, url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status, page=page), 'notifications', - form='search-form' + form='search-form', + interval=20 ) }} {% endblock %}