From 91f34ac76c200a2ef86ab63ece23a61ab50f1fdb Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:01:41 +0200 Subject: [PATCH] Reduce notifications polling frequency --- client/src/stores/notificationsStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/stores/notificationsStore.ts b/client/src/stores/notificationsStore.ts index 6a7837e6792..7ed09f21174 100644 --- a/client/src/stores/notificationsStore.ts +++ b/client/src/stores/notificationsStore.ts @@ -12,8 +12,8 @@ import { mergeObjectListsById } from "@/utils/utils"; import { useBroadcastsStore } from "./broadcastsStore"; -const ACTIVE_POLLING_INTERVAL = 5000; -const INACTIVE_POLLING_INTERVAL = 30000; +const ACTIVE_POLLING_INTERVAL = 60000; // 1 minute +const INACTIVE_POLLING_INTERVAL = ACTIVE_POLLING_INTERVAL * 10; // 10 minutes export const useNotificationsStore = defineStore("notificationsStore", () => { const { startWatchingResource: startWatchingNotifications } = useResourceWatcher(getNotificationStatus, {