From fd121b3ad155143ed5645654d8ac5c4b7628fb07 Mon Sep 17 00:00:00 2001 From: hudashot <17239583+hudashot@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:47:30 +0000 Subject: [PATCH] Regularly trigger ADD_CALENDAR to ensure calendar fetcher is running --- modules/default/calendar/calendar.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index ad83c9397e..a6eeb22611 100755 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -105,6 +105,13 @@ Module.register("calendar", { } this.addCalendar(calendar.url, calendar.auth, calendarConfig); + + // Trigger ADD_CALENDAR every fetchInterval to make sure there is always a calendar + // fetcher running on the server side. + var self = this; + setInterval(function() { + self.addCalendar(calendar.url, calendar.auth, calendarConfig); + }, self.config.fetchInterval); } this.calendarData = {};