summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-14 17:15:46 +0200
committerRobin Appelman <icewind@owncloud.com>2014-11-07 12:56:09 +0100
commitd26a427f92259ab067da64803c00e7f1589060b0 (patch)
tree3729bb0ab7ec12649a343111364f7742a8bf9c13 /lib/private/files
parente345697cabd6670e652f4bba7b91269e4efcd794 (diff)
downloadnextcloud-server-d26a427f92259ab067da64803c00e7f1589060b0.tar.gz
nextcloud-server-d26a427f92259ab067da64803c00e7f1589060b0.zip
Also propagate etag changes when the watcher finds a changed file
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/cache/updater.php5
-rw-r--r--lib/private/files/view.php2
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index c303ff24b1f..31a4a7c21e7 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -30,6 +30,11 @@ class Updater {
$this->propagator = new ChangePropagator($view);
}
+ public function propagate($path, $time = null) {
+ $this->propagator->addChange($path);
+ $this->propagator->propagateChanges($time);
+ }
+
/**
* Update the cache for $path
*
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 5f5f29ded4f..e15a3063e94 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -903,6 +903,7 @@ class View {
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
$data = $cache->get($internalPath);
} else if ($watcher->checkUpdate($internalPath, $data)) {
+ $this->updater->propagate($path);
$data = $cache->get($internalPath);
}
@@ -974,6 +975,7 @@ class View {
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
$data = $cache->get($internalPath);
} else if ($watcher->checkUpdate($internalPath, $data)) {
+ $this->updater->propagate($path);
$data = $cache->get($internalPath);
}