aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-16 19:11:33 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-16 19:11:33 +0100
commit29ec00797948d98ffa5dcb0baa1518630ab3ef56 (patch)
tree00b3befe425d2ad85fc90573abbd0b78dc5428e2
parent5445b94416f50bb040e7426cadfa458607893f07 (diff)
downloadnextcloud-server-29ec00797948d98ffa5dcb0baa1518630ab3ef56.tar.gz
nextcloud-server-29ec00797948d98ffa5dcb0baa1518630ab3ef56.zip
Cache: dont migrate permissions, cache them on demain instead
-rw-r--r--lib/files/cache/upgrade.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/files/cache/upgrade.php b/lib/files/cache/upgrade.php
index cd9a9e91a8c..19e3d9ad575 100644
--- a/lib/files/cache/upgrade.php
+++ b/lib/files/cache/upgrade.php
@@ -14,8 +14,6 @@ class Upgrade {
*/
private $legacy;
- private $permissionsCaches = array();
-
private $numericIds = array();
private $mimeTypeIds = array();
@@ -72,9 +70,6 @@ class Upgrade {
$insertQuery->execute(array($data['id'], $data['storage'], $data['path'], $data['path_hash'], $data['parent'], $data['name'],
$data['mimetype'], $data['mimepart'], $data['size'], $data['mtime'], $data['encrypted']));
-
- $permissionsCache = $this->getPermissionsCache($data['storage_object']);
- $permissionsCache->set($data['id'], $data['user'], $data['permissions']);
}
/**
@@ -102,18 +97,6 @@ class Upgrade {
}
/**
- * @param \OC\Files\Storage\Storage $storage
- * @return Permissions
- */
- function getPermissionsCache($storage) {
- $storageId = $storage->getId();
- if (!isset($this->permissionsCaches[$storageId])) {
- $this->permissionsCaches[$storageId] = $storage->getPermissionsCache();
- }
- return $this->permissionsCaches[$storageId];
- }
-
- /**
* get the numeric storage id
*
* @param \OC\Files\Storage\Storage $storage