mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
cache numeric id in mountpoint
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
9281359fa4
commit
e3bafcc7a8
1 changed files with 5 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ class MountPoint implements IMountPoint {
|
|||
protected $storage = null;
|
||||
protected $class;
|
||||
protected $storageId;
|
||||
protected $numericStorageId = null;
|
||||
protected $rootId = null;
|
||||
|
||||
/**
|
||||
|
|
@ -211,7 +212,10 @@ class MountPoint implements IMountPoint {
|
|||
* @return int
|
||||
*/
|
||||
public function getNumericStorageId() {
|
||||
return $this->getStorage()->getStorageCache()->getNumericId();
|
||||
if (is_null($this->numericStorageId)) {
|
||||
$this->numericStorageId = $this->getStorage()->getStorageCache()->getNumericId();
|
||||
}
|
||||
return $this->numericStorageId;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue