cache result for getowner

This commit is contained in:
Robin Appelman 2016-02-17 19:14:46 +01:00
parent 4422f9c9ef
commit f309bc960d

View file

@ -383,7 +383,13 @@ abstract class Common implements Storage, ILockingStorage {
* @return string|false uid or false
*/
public function getOwner($path) {
return \OC_User::getUser();
static $owner;
if (!isset($owner)) {
$owner = \OC_User::getUser();;
}
return $owner;
}
/**