Only mount the storages for the user once

This commit is contained in:
Robin Appelman 2014-10-13 13:14:07 +02:00
parent 8de287f2ef
commit 3f63f4b6b1

View file

@ -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);