Drop frequency of AJAX updates on notifications page

This is another page that puts load on the database, so let’s treat it
the same as the dashboard.
This commit is contained in:
Chris Hill-Scott
2020-03-23 12:03:01 +00:00
parent 60626dfb55
commit aba5e19805

View File

@@ -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 %}