Revert "Use Cache->clear to cleanup the filecache for removed users"

This reverts commit 5a5b6f187e.
This commit is contained in:
Robin Appelman 2014-02-03 16:29:04 +01:00
parent 5a5b6f187e
commit 8d6a3a00b4

View file

@ -205,13 +205,8 @@ class OC_User {
// Delete user files in /data/
OC_Helper::rmdirr(\OC_User::getHome($uid));
// Cleanup the filecache
$mount = \OC\Files\Filesystem::getMountByStorageId('home::' . $uid);
if (count($mount) > 0) {
$mount = $mount[0];
$cache = $mount->getStorage()->getCache();
$cache->clear();
}
// Delete the users entry in the storage table
\OC\Files\Cache\Storage::remove('home::' . $uid);
// Remove it from the Cache
self::getManager()->delete($uid);