mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 14:54:02 -05:00
Cache: dont migrate permissions, cache them on demain instead
This commit is contained in:
parent
5445b94416
commit
29ec007979
1 changed files with 0 additions and 17 deletions
17
lib/files/cache/upgrade.php
vendored
17
lib/files/cache/upgrade.php
vendored
|
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -101,18 +96,6 @@ class Upgrade {
|
|||
return $newData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue