Skip to content
Snippets Groups Projects
Commit f309bc96 authored by Robin Appelman's avatar Robin Appelman
Browse files

cache result for getowner

parent 4422f9c9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment