enforce fixed refresh interval if cache is enabled

This commit is contained in:
Eduardo Silva
2026-01-07 12:11:35 -03:00
parent 65a2e8de79
commit cf61c3113f
5 changed files with 19 additions and 8 deletions

View File

@@ -171,7 +171,7 @@
<p id="invitePassword"></p>
<p>
{% trans 'Expires on' %}: <span id="inviteExpiration"></span>
<i class="fas fa-sync-alt" id="refreshInviteButton" style="cursor: pointer;" title="Refresh Invite"></i>
<i class="fas fa-sync-alt" id="refreshInviteButton" style="cursor: pointer;" title="{% trans 'Refresh Invite' %}"></i>
</p>
<div class="form-group">
<label for="inviteContactInput">{% trans 'Enter Email or WhatsApp Number' %}:</label>
@@ -522,7 +522,7 @@
};
fetchWireguardStatus();
setInterval(fetchWireguardStatus, {{ current_instance.peer_list_refresh_interval }} * 1000);
setInterval(fetchWireguardStatus, {{ refresh_interval }} * 1000);
});
const updateUI = (data) => {