Skip to content

Commit 83d73b5

Browse files
committed
delete files before cleaning cache when cleaning user files
otherwise, when using object store, we loose track of which files the user owns before we can delete them Signed-off-by: Robin Appelman <[email protected]>
1 parent e231338 commit 83d73b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public function handle(Event $event): void {
6464
}
6565
$storage = $this->homeStorageCache[$event->getUser()->getUID()];
6666
$cache = $storage->getCache();
67+
$storage->rmdir('');
6768
if ($cache instanceof Cache) {
6869
$cache->clear();
6970
} else {
7071
throw new \Exception("Home storage has invalid cache");
7172
}
72-
$storage->rmdir('');
7373
}
7474
}
7575
}

0 commit comments

Comments
 (0)