calendar icon indicating copy to clipboard operation
calendar copied to clipboard

Adaptive/configurable sync intervals for subscription calendars

Open miaulalala opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe.

The Nextcloud server caches the subscriptions (stores data in the database) and exposes them as regular calendars. The default refresh rate for this is of one week, which is appropriate for things like public holiday calendars, but might not be for other things, for instance subscribing to a public calendar from another Nextcloud user, and expecting real-time sync.

Describe the solution you'd like

After https://github.com/nextcloud/server/issues/43541 has been implemented, we should add a custom subscription option for each calendar in the settings. This interval should be configurable by the user for each calendar.

It should provide pre- set intervals: 1 day, 1 week, etc.

Only allow setting a sync rate from the user side if the calendar itself doesn't already provide one as per RFC 7986

Describe alternatives you've considered

No response

Additional context

No response

miaulalala avatar Jul 22 '24 15:07 miaulalala

It would be nice if admins could enforce a sane minimum as well.

tcitworld avatar Jul 22 '24 15:07 tcitworld

It would be nice if admins could enforce a sane minimum as well.

We would enforce sane minimums on the frontend side as we would preconfigure the sync intervals, avoiding weird sync intervals such as 1 minute. Let's start with "every 1 day" and see if that is too high, then we can add more options.

miaulalala avatar Jul 23 '24 08:07 miaulalala

Is there a standard prop for the sync interval, e.g. so that clients could allow the users to adjust the interval as well?

ChristophWurst avatar Aug 20 '24 12:08 ChristophWurst

We could write the https://icalendar.org/New-Properties-for-iCalendar-RFC-7986/5-7-refresh-interval-property.html property if the server doesn't provide one

miaulalala avatar Aug 20 '24 13:08 miaulalala

Also found some custom property by outlook: X-PUBLISHED-TTL

miaulalala avatar Aug 20 '24 13:08 miaulalala

[...], we should add a custom subscription option for each calendar in the settings. This interval should be configurable by the user for each calendar.

This would be a great and urgently needed enhancement!

trippodi avatar Jan 13 '25 04:01 trippodi