Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-50112

Make Google Calendar to Team Calendars synchronisation frequency or interval to be configurable

    • 2
    • 7
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Currently, when one subscribes Google Calendar in the Team Calendars, any updates on Google Calendar will be synced/pulled to Team Calendar within one hour time. Some users reported that it takes longer than one hour. This sync interval is currently not configurable. It would be great to have this sync interval configurable somewhere.

      One-off Workaround

      You can do either one of the following to trigger the sync:

      • Flush Confluence caches by going to Confluence Admin > Cache Statistics > Flush All. To be exact, you only need to flush these 2 caches (one after another):
        • Team Calendars - Internal cache for external-sourced sub-calendars
        • Team Calendars - iCal subscription sub-calendar events
      • One of our user reports that refreshing the Google Calendar page could trigger the sync as well.

      Better Workaround

      Add the following in your confluence-home/config/ehcache.xml and then restart Confluence:

          <!-- Team Calendar Cache Config to pull GCal update to TC every 5 minutes -->
          <cache name="com.atlassian.confluence.extra.calendar3.calendarstore.ExternalCalendarDataStore" maxElementsInMemory="1000" eternal="false" timeToIdleSeconds="299" timeToLiveSeconds="299" overflowToDisk="false" />
          <cache name="com.atlassian.confluence.extra.calendar3.calendarstore.SubscriptionCalendarDataStore:subcalendar-data" maxElementsInMemory="1000" eternal="false" timeToIdleSeconds="300" timeToLiveSeconds="300" overflowToDisk="false" />
      

      This will get the sync to be triggered every 5 minutes. Feel free to change the duration as per your need. Please note to ensure the value of "com.atlassian.confluence.extra.calendar3.calendarstore.ExternalCalendarDataStore" is one second before the value of "com.atlassian.confluence.extra.calendar3.calendarstore.SubscriptionCalendarDataStore:subcalendar-data"

          Form Name

            [CONFSERVER-50112] Make Google Calendar to Team Calendars synchronisation frequency or interval to be configurable

            Could be nice to have an answer. I have a same issue.

            Alexander Orlov added a comment - Could be nice to have an answer. I have a same issue.

            Hello everybody,

            unfortunately the workaround doesn't work for me. Team Calendar and iCal in Outlook are still out of sync. Deleted appointmentments in Team Calendar still show up in Outlook. Any further hints or news about this?

            Infrastruktur Management added a comment - Hello everybody, unfortunately the workaround doesn't work for me. Team Calendar and iCal in Outlook are still out of sync. Deleted appointmentments in Team Calendar still show up in Outlook. Any further hints or news about this?

            I ended up making another workaround,
            Cache Statistics -> Advanced -> Team Calendars - iCal -> Adjust Max Entries = 1

            Works for me.

            Clement Wong added a comment - I ended up making another workaround, Cache Statistics -> Advanced -> Team Calendars - iCal -> Adjust Max Entries = 1 Works for me.

            Guys, I tried to put the work around in config/ehcache.properties but it doesn't work, any suggestion?

            cache.timeToIdleSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.ExternalCalendarDataStore=29
            cache.timeToLiveSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.ExternalCalendarDataStore=30
            cache.timeToIdleSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.SubscriptionCalendarDataStore:subcalendar-data=29
            cache.timeToLiveSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.SubscriptionCalendarDataStore:subcalendar-data=30
            

            Clement Wong added a comment - Guys, I tried to put the work around in config/ehcache.properties but it doesn't work, any suggestion? cache.timeToIdleSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.ExternalCalendarDataStore=29 cache.timeToLiveSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.ExternalCalendarDataStore=30 cache.timeToIdleSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.SubscriptionCalendarDataStore:subcalendar-data=29 cache.timeToLiveSeconds.com.atlassian.confluence.extra.calendar3.calendarstore.SubscriptionCalendarDataStore:subcalendar-data=30

            Leo Leung added a comment -

            The ehcache.xml workaround does not work anymore.
            What is the workaround for this in Confluence version 5.3.4?

            Leo Leung added a comment - The ehcache.xml workaround does not work anymore. What is the workaround for this in Confluence version 5.3.4?

              Unassigned Unassigned
              halatas HuseinA
              Votes:
              55 Vote for this issue
              Watchers:
              36 Start watching this issue

                Created:
                Updated: