Skip to content
Snippets Groups Projects
Commit 995b8bf1 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

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

parent 4b446f3e
No related branches found
No related tags found
No related merge requests found
......@@ -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/');
}
}
\ No newline at end of file
0.3.2
\ No newline at end of file
0.3.3
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment