Remove old Shared folders from the file cache, fixes bug oc-1911
This commit is contained in:
parent
4b446f3edd
commit
995b8bf12a
2 changed files with 9 additions and 1 deletions
|
@ -62,3 +62,11 @@ if (version_compare($installedVersion, '0.3', '<')) {
|
||||||
// $query = OCP\DB::prepare('DROP TABLE `*PREFIX*sharing`');
|
// $query = OCP\DB::prepare('DROP TABLE `*PREFIX*sharing`');
|
||||||
// $query->execute();
|
// $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/');
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1 @@
|
||||||
0.3.2
|
0.3.3
|
Loading…
Reference in a new issue