Skip to content

Commit 1fd6a0c

Browse files
Merge pull request #1931 from nextcloud/backport/1929/stable30
[stable30] only sync users on explicit request
2 parents 9e2bdb8 + e6cf080 commit 1fd6a0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Service/SyncService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ public function sync(int $sync = self::SYNC_ALL): void {
146146
$this->syncApps();
147147
}
148148

149-
if ($this->shouldSync(self::SYNC_USERS, $sync)) {
149+
// This is useless and too heavy on load
150+
// we keep it available when running ./occ circles:sync --users
151+
if ($sync === self::SYNC_USERS) {
150152
$this->syncNextcloudUsers();
151153
}
152154

0 commit comments

Comments
 (0)