mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
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 <robin@icewind.nl>
This commit is contained in:
parent
12e3e85336
commit
db3093a46f
1 changed files with 1 additions and 1 deletions
|
|
@ -72,12 +72,12 @@ class UserDeletedFilesCleanupListener implements IEventListener {
|
|||
}
|
||||
$storage = $this->homeStorageCache[$event->getUser()->getUID()];
|
||||
$cache = $storage->getCache();
|
||||
$storage->rmdir('');
|
||||
if ($cache instanceof Cache) {
|
||||
$cache->clear();
|
||||
} else {
|
||||
throw new \Exception("Home storage has invalid cache");
|
||||
}
|
||||
$storage->rmdir('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue