diff options
author | Robin Appelman <robin@icewind.nl> | 2022-01-06 15:12:56 +0100 |
---|---|---|
committer | Vincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com> | 2022-06-13 08:51:22 +0000 |
commit | db3093a46f8719276eefd4d0d117d8da7670e8e5 (patch) | |
tree | c8428436d3bafd1afd06f3c2dc3646ab8490f7b2 /lib | |
parent | 12e3e85336b547c8d6a93110d900c4fed6966184 (diff) | |
download | nextcloud-server-db3093a46f8719276eefd4d0d117d8da7670e8e5.tar.gz nextcloud-server-db3093a46f8719276eefd4d0d117d8da7670e8e5.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php b/lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php index 2fb05159d09..5e657be0763 100644 --- a/lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php +++ b/lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php @@ -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(''); } } } |