Only mount the storages for the user once
This commit is contained in:
parent
8de287f2ef
commit
3f63f4b6b1
1 changed files with 5 additions and 1 deletions
|
@ -45,6 +45,7 @@ class Filesystem {
|
||||||
*/
|
*/
|
||||||
static private $defaultInstance;
|
static private $defaultInstance;
|
||||||
|
|
||||||
|
static private $usersSetup = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* classname which used for hooks handling
|
* classname which used for hooks handling
|
||||||
|
@ -321,7 +322,10 @@ class Filesystem {
|
||||||
if ($user == '') {
|
if ($user == '') {
|
||||||
$user = \OC_User::getUser();
|
$user = \OC_User::getUser();
|
||||||
}
|
}
|
||||||
$parser = new \OC\ArrayParser();
|
if (isset(self::$usersSetup[$user])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
self::$usersSetup[$user] = true;
|
||||||
|
|
||||||
$root = \OC_User::getHome($user);
|
$root = \OC_User::getHome($user);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue