diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-22 13:45:55 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-23 12:20:31 +0200 |
commit | 151c48494e0e1c6b8bed2551c50196a67284db0c (patch) | |
tree | 4b9bc35742a3cd5b22c76c120a55dcf2b3babaac /lib/private/files | |
parent | ff1f341d9776401f4e68a5de12b546ca26f229d1 (diff) | |
download | nextcloud-server-151c48494e0e1c6b8bed2551c50196a67284db0c.tar.gz nextcloud-server-151c48494e0e1c6b8bed2551c50196a67284db0c.zip |
Add a config option fro setting the filesystem watcher policy
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/storage/common.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index fef33cabd87..45db51c1659 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -7,6 +7,7 @@ */ namespace OC\Files\Storage; +use OC\Files\Cache\Watcher; /** * Storage backend class for providing common filesystem operation methods @@ -276,6 +277,7 @@ abstract class Common implements \OC\Files\Storage\Storage { public function getWatcher($path = '') { if (!isset($this->watcher)) { $this->watcher = new \OC\Files\Cache\Watcher($this); + $this->watcher->setPolicy(\OC::$server->getConfig()->getSystemValue('filesystem_check_changes', Watcher::CHECK_ONCE)); } return $this->watcher; } |