mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 18:11:02 -04:00
perf(UserMountCache): Invert condition so that we avoid some SQL queries
getStorageId creates some SQL queries, while the other queries don't, so compare that last. Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
parent
c6c11d474b
commit
668ad4faac
1 changed files with 2 additions and 2 deletions
|
|
@ -154,9 +154,9 @@ class UserMountCache implements IUserMountCache {
|
|||
if (isset($newMounts[$key])) {
|
||||
$newMount = $newMounts[$key];
|
||||
if (
|
||||
$newMount->getStorageId() !== $cachedMount->getStorageId()
|
||||
|| $newMount->getMountId() !== $cachedMount->getMountId()
|
||||
$newMount->getMountId() !== $cachedMount->getMountId()
|
||||
|| $newMount->getMountProvider() !== $cachedMount->getMountProvider()
|
||||
|| $newMount->getStorageId() !== $cachedMount->getStorageId()
|
||||
) {
|
||||
$changed[] = [$cachedMount, $newMount];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue