From 151c48494e0e1c6b8bed2551c50196a67284db0c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 22 May 2014 13:45:55 +0200 Subject: Add a config option fro setting the filesystem watcher policy --- lib/private/files/storage/common.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/private/files/storage') 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; } -- cgit v1.2.3