Skip to content

Commit 9190fbd

Browse files
committed
feat(dav): increase default calendar subscription refresh rate to one day
With the performance benefits from #43541 it makes sense Reference #46171 (comment) Signed-off-by: Thomas Citharel <[email protected]>
1 parent d334773 commit 9190fbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/dav/lib/BackgroundJob/RefreshWebcalJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function start(IJobList $jobList): void {
4242
$this->fixSubscriptionRowTyping($subscription);
4343

4444
// if no refresh rate was configured, just refresh once a week
45-
$defaultRefreshRate = $this->config->getAppValue('dav', 'calendarSubscriptionRefreshRate', 'P1W');
45+
$defaultRefreshRate = $this->config->getAppValue('dav', 'calendarSubscriptionRefreshRate', 'P1D');
4646
$refreshRate = $subscription[RefreshWebcalService::REFRESH_RATE] ?? $defaultRefreshRate;
4747

4848
$subscriptionId = $subscription['id'];

apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testRun(int $lastRun, int $time, bool $process): void {
7878

7979
$this->config->expects($this->once())
8080
->method('getAppValue')
81-
->with('dav', 'calendarSubscriptionRefreshRate', 'P1W')
81+
->with('dav', 'calendarSubscriptionRefreshRate', 'P1D')
8282
->willReturn('P1W');
8383

8484
$this->timeFactory->method('getTime')

0 commit comments

Comments
 (0)