aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/view.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-28 11:43:45 +0100
committerRobin Appelman <icewind@owncloud.com>2012-10-28 11:43:45 +0100
commitb07672821bcdc1ce31e169d691cf9a94ad5fad21 (patch)
treebea32eb6060a842b361e596b3c20c67d0c85c88e /lib/files/view.php
parentfba7be1194fd31da2cb71c56d0cd8e6ab1c1ff49 (diff)
downloadnextcloud-server-b07672821bcdc1ce31e169d691cf9a94ad5fad21.tar.gz
nextcloud-server-b07672821bcdc1ce31e169d691cf9a94ad5fad21.zip
check for changes when using the cache api
Diffstat (limited to 'lib/files/view.php')
-rw-r--r--lib/files/view.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index 0f9a5feb5dd..c5e470b438e 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -672,6 +672,9 @@ class View {
if (!$cache->inCache($internalPath)) {
$scanner = $storage->getScanner();
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
+ } else {
+ $watcher = new \OC\Files\Cache\Watcher($storage);
+ $watcher->checkUpdate($internalPath);
}
$data = $cache->get($internalPath);
@@ -711,6 +714,9 @@ class View {
if (!$cache->inCache($internalPath)) {
$scanner = $storage->getScanner();
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
+ } else {
+ $watcher = new \OC\Files\Cache\Watcher($storage);
+ $watcher->checkUpdate($internalPath);
}
$files = $cache->getFolderContents($internalPath); //TODO: mimetype_filter