cache result for getowner
This commit is contained in:
parent
4422f9c9ef
commit
f309bc960d
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue