mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
feat(dav): increase default calendar subscription refresh rate to one day
With the performance benefits from #43541 it makes sense Reference https://github.com/nextcloud/server/issues/46171#issuecomment-2487910923 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
d334773b98
commit
d3068f5db5
2 changed files with 3 additions and 3 deletions
|
|
@ -41,8 +41,8 @@ class RefreshWebcalJob extends Job {
|
|||
|
||||
$this->fixSubscriptionRowTyping($subscription);
|
||||
|
||||
// if no refresh rate was configured, just refresh once a week
|
||||
$defaultRefreshRate = $this->config->getAppValue('dav', 'calendarSubscriptionRefreshRate', 'P1W');
|
||||
// if no refresh rate was configured, just refresh once a day
|
||||
$defaultRefreshRate = $this->config->getAppValue('dav', 'calendarSubscriptionRefreshRate', 'P1D');
|
||||
$refreshRate = $subscription[RefreshWebcalService::REFRESH_RATE] ?? $defaultRefreshRate;
|
||||
|
||||
$subscriptionId = $subscription['id'];
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class RefreshWebcalJobTest extends TestCase {
|
|||
|
||||
$this->config->expects($this->once())
|
||||
->method('getAppValue')
|
||||
->with('dav', 'calendarSubscriptionRefreshRate', 'P1W')
|
||||
->with('dav', 'calendarSubscriptionRefreshRate', 'P1D')
|
||||
->willReturn('P1W');
|
||||
|
||||
$this->timeFactory->method('getTime')
|
||||
|
|
|
|||
Loading…
Reference in a new issue