]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only mount the storages for the user once
authorRobin Appelman <icewind@owncloud.com>
Mon, 13 Oct 2014 11:14:07 +0000 (13:14 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 27 Oct 2014 17:50:28 +0000 (18:50 +0100)
lib/private/files/filesystem.php

index cdbbbf3d3cd10ab90277ea528eb4b4af0a845f3a..51a241a4e338ff764d858cdd214923afc9fa8465 100644 (file)
@@ -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);