Remove old Shared folders from the file cache, fixes bug oc-1911

This commit is contained in:
Michael Gapczynski 2012-10-07 17:34:21 -04:00
parent 4b446f3edd
commit 995b8bf12a
2 changed files with 9 additions and 1 deletions

View file

@ -62,3 +62,11 @@ if (version_compare($installedVersion, '0.3', '<')) {
// $query = OCP\DB::prepare('DROP TABLE `*PREFIX*sharing`');
// $query->execute();
}
if (version_compare($installedVersion, '0.3.3', '<')) {
OC_User::useBackend(new OC_User_Database());
OC_App::loadApps(array('authentication'));
$users = OC_User::getUsers();
foreach ($users as $user) {
OC_FileCache::delete('Shared', '/'.$user.'/files/');
}
}

View file

@ -1 +1 @@
0.3.2
0.3.3