Disable filesystem_check_changes by default
This will prevent detecting remote changes done in the data folder / root storage by default. In the rare cases where the data folder is shared with other apps/users outside ownCloud and change detection is needed, the admin will have to set the option explicitly from now on. Note that this doesn't affect external storages which have their own setting in the mount options.
This commit is contained in:
parent
6ada1e3276
commit
7c9405a921
|
@ -975,7 +975,7 @@ $CONFIG = array(
|
|||
* 2 -> Check every time the filesystem is used, causes a performance hit when
|
||||
* using external storages, not recommended for regular use.
|
||||
*/
|
||||
'filesystem_check_changes' => 1,
|
||||
'filesystem_check_changes' => 0,
|
||||
|
||||
/**
|
||||
* All css and js files will be served by the web server statically in one js
|
||||
|
|
|
@ -338,7 +338,7 @@ abstract class Common implements Storage {
|
|||
}
|
||||
if (!isset($this->watcher)) {
|
||||
$this->watcher = new Watcher($storage);
|
||||
$globalPolicy = \OC::$server->getConfig()->getSystemValue('filesystem_check_changes', Watcher::CHECK_ONCE);
|
||||
$globalPolicy = \OC::$server->getConfig()->getSystemValue('filesystem_check_changes', Watcher::CHECK_NEVER);
|
||||
$this->watcher->setPolicy((int)$this->getMountOption('filesystem_check_changes', $globalPolicy));
|
||||
}
|
||||
return $this->watcher;
|
||||
|
|
Loading…
Reference in New Issue