Skip to content
Snippets Groups Projects
Unverified Commit 5090a68d authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #17817 from nextcloud/disable-background-scan-option

add option to disable background scanning of files
parents 3a3ed95b 5b2af1cb
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,10 @@ class ScanFiles extends \OC\BackgroundJob\TimedJob {
* @throws \Exception
*/
protected function run($argument) {
if ($this->config->getSystemValueBool('files_no_background_scan', false)) {
return;
}
$offset = $this->config->getAppValue('files', 'cronjob_scan_files', 0);
$users = $this->userManager->search('', self::USERS_PER_SESSION, $offset);
if (!count($users)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment