Skip to content

Commit

Permalink
feat(dav): increase default calendar subscription refresh rate to one…
Browse files Browse the repository at this point in the history
… day

With the performance benefits from #43541 it makes sense

Reference #46171 (comment)

Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed Nov 20, 2024
1 parent d334773 commit 9190fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/BackgroundJob/RefreshWebcalJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function start(IJobList $jobList): void {
$this->fixSubscriptionRowTyping($subscription);

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

$subscriptionId = $subscription['id'];
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function testRun(int $lastRun, int $time, bool $process): void {

$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'calendarSubscriptionRefreshRate', 'P1W')
->with('dav', 'calendarSubscriptionRefreshRate', 'P1D')
->willReturn('P1W');

$this->timeFactory->method('getTime')
Expand Down

0 comments on commit 9190fbd

Please sign in to comment.