mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01: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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user