aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-07 01:03:11 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-07 01:03:11 +0100
commit439578288facbae3144f131aca85a7235f622053 (patch)
tree0bff7835cf5528cefeb9d3f091da4d3cf94a1b25 /lib/files/cache
parent457dc270f5147863c00b55355542298ba4d41762 (diff)
downloadnextcloud-server-439578288facbae3144f131aca85a7235f622053.tar.gz
nextcloud-server-439578288facbae3144f131aca85a7235f622053.zip
Cache: split permission cache scanning and cache scanning
Diffstat (limited to 'lib/files/cache')
-rw-r--r--lib/files/cache/scanner.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index 4c0ec9617f9..526d4a2aab5 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -24,11 +24,6 @@ class Scanner {
*/
private $cache;
- /**
- * @var \OC\Files\Cache\Permissions $permissionsCache
- */
- private $permissionsCache;
-
const SCAN_RECURSIVE = true;
const SCAN_SHALLOW = false;
@@ -36,7 +31,6 @@ class Scanner {
$this->storage = $storage;
$this->storageId = $this->storage->getId();
$this->cache = $storage->getCache();
- $this->permissionsCache = $storage->getPermissionsCache();
}
/**
@@ -53,10 +47,8 @@ class Scanner {
$data['mtime'] = $this->storage->filemtime($path);
if ($data['mimetype'] == 'httpd/unix-directory') {
$data['size'] = -1; //unknown
- $data['permissions'] = $this->storage->getPermissions($path . '/');
} else {
$data['size'] = $this->storage->filesize($path);
- $data['permissions'] = $this->storage->getPermissions($path);
}
return $data;
}
@@ -81,7 +73,6 @@ class Scanner {
}
}
$id = $this->cache->put($file, $data);
- $this->permissionsCache->set($id, \OC_User::getUser(), $data['permissions']);
}
return $data;
}