mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 14:24:59 -04:00
Merge pull request #6988 from starypatyk/stable12-mount-cache-performance
Improve performance of UserMountCache with external storage folders
This commit is contained in:
commit
19069f2b9c
1 changed files with 5 additions and 1 deletions
|
|
@ -195,7 +195,11 @@ class UserMountCache implements IUserMountCache {
|
|||
if (is_null($user)) {
|
||||
return null;
|
||||
}
|
||||
return new CachedMountInfo($user, (int)$row['storage_id'], (int)$row['root_id'], $row['mount_point'], $row['mount_id'], isset($row['path']) ? $row['path'] : '');
|
||||
$mount_id = $row['mount_id'];
|
||||
if (!is_null($mount_id)) {
|
||||
$mount_id = (int) $mount_id;
|
||||
}
|
||||
return new CachedMountInfo($user, (int)$row['storage_id'], (int)$row['root_id'], $row['mount_point'], $mount_id, isset($row['path']) ? $row['path'] : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue