diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-01-20 15:21:21 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-01-20 15:21:21 +0100 |
commit | 3d6d8d1bb683f9daca3a2b8a876e291adc320375 (patch) | |
tree | c651cdbce0edcfc34745a8f3404a21cef8752927 /lib/private/files/cache/watcher.php | |
parent | 62dd58aa190e5c53d8924e30a37dcc69f9495f6c (diff) | |
download | nextcloud-server-3d6d8d1bb683f9daca3a2b8a876e291adc320375.tar.gz nextcloud-server-3d6d8d1bb683f9daca3a2b8a876e291adc320375.zip |
Reuse the data retrieved from the cache in checkUpdate
Diffstat (limited to 'lib/private/files/cache/watcher.php')
-rw-r--r-- | lib/private/files/cache/watcher.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/cache/watcher.php b/lib/private/files/cache/watcher.php index 58f624c8990..251ecbe7071 100644 --- a/lib/private/files/cache/watcher.php +++ b/lib/private/files/cache/watcher.php @@ -40,7 +40,7 @@ class Watcher { * check $path for updates * * @param string $path - * @return boolean true if path was updated, false otherwise + * @return boolean | array true if path was updated, otherwise the cached data is returned */ public function checkUpdate($path) { $cachedEntry = $this->cache->get($path); @@ -56,7 +56,7 @@ class Watcher { $this->cache->correctFolderSize($path); return true; } - return false; + return $cachedEntry; } /** |