diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-10-13 13:14:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-27 18:50:28 +0100 |
commit | 3f63f4b6b13a358e13a0c5ebd2f85b918b8c410f (patch) | |
tree | ff5bc8055a347c287a648c6c7cf6954aa5b7f2a4 | |
parent | 8de287f2efe2eafcbda8c54590e363486719257e (diff) | |
download | nextcloud-server-3f63f4b6b13a358e13a0c5ebd2f85b918b8c410f.tar.gz nextcloud-server-3f63f4b6b13a358e13a0c5ebd2f85b918b8c410f.zip |
Only mount the storages for the user once
-rw-r--r-- | lib/private/files/filesystem.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index cdbbbf3d3cd..51a241a4e33 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -45,6 +45,7 @@ class Filesystem { */ static private $defaultInstance; + static private $usersSetup = array(); /** * classname which used for hooks handling @@ -321,7 +322,10 @@ class Filesystem { if ($user == '') { $user = \OC_User::getUser(); } - $parser = new \OC\ArrayParser(); + if (isset(self::$usersSetup[$user])) { + return; + } + self::$usersSetup[$user] = true; $root = \OC_User::getHome($user); |