summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-11-04 16:34:39 +0100
committerRobin Appelman <icewind@owncloud.com>2015-11-04 16:34:39 +0100
commita2cfbd975ae0695e391c45969fd0e418b9580e72 (patch)
tree2821f7681fefc8bbb3ff0664f80ebf6006719050 /lib/private/files/cache
parentc487f0f13823322d7290d90e37e20bf0c317efb5 (diff)
downloadnextcloud-server-a2cfbd975ae0695e391c45969fd0e418b9580e72.tar.gz
nextcloud-server-a2cfbd975ae0695e391c45969fd0e418b9580e72.zip
mark path as checked
Diffstat (limited to 'lib/private/files/cache')
-rw-r--r--lib/private/files/cache/watcher.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/cache/watcher.php b/lib/private/files/cache/watcher.php
index b43091985cc..e660e56bfee 100644
--- a/lib/private/files/cache/watcher.php
+++ b/lib/private/files/cache/watcher.php
@@ -119,6 +119,7 @@ class Watcher {
*/
public function needsUpdate($path, $cachedData) {
if ($this->watchPolicy === self::CHECK_ALWAYS or ($this->watchPolicy === self::CHECK_ONCE and array_search($path, $this->checkedPaths) === false)) {
+ $this->checkedPaths[] = $path;
return $this->storage->hasUpdated($path, $cachedData['storage_mtime']);
}
return false;