summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-05-22 13:45:55 +0200
committerRobin Appelman <icewind@owncloud.com>2014-05-23 12:20:31 +0200
commit151c48494e0e1c6b8bed2551c50196a67284db0c (patch)
tree4b9bc35742a3cd5b22c76c120a55dcf2b3babaac /lib/private/files
parentff1f341d9776401f4e68a5de12b546ca26f229d1 (diff)
downloadnextcloud-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.php2
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;
}