diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-10-07 17:34:21 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-10-07 17:34:21 -0400 |
commit | 995b8bf12ac5f028ba643d090c41c4393ae040a8 (patch) | |
tree | 969f83c48897474f0425689c4cedd454931af829 | |
parent | 4b446f3eddd31829b844b09b8169a85350b26d2b (diff) | |
download | nextcloud-server-995b8bf12ac5f028ba643d090c41c4393ae040a8.tar.gz nextcloud-server-995b8bf12ac5f028ba643d090c41c4393ae040a8.zip |
Remove old Shared folders from the file cache, fixes bug oc-1911
-rw-r--r-- | apps/files_sharing/appinfo/update.php | 8 | ||||
-rw-r--r-- | apps/files_sharing/appinfo/version | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php index 2beeb6316bd..23f2afea7e1 100644 --- a/apps/files_sharing/appinfo/update.php +++ b/apps/files_sharing/appinfo/update.php @@ -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 diff --git a/apps/files_sharing/appinfo/version b/apps/files_sharing/appinfo/version index 9fc80f937fa..87a0871112f 100644 --- a/apps/files_sharing/appinfo/version +++ b/apps/files_sharing/appinfo/version @@ -1 +1 @@ -0.3.2
\ No newline at end of file +0.3.3
\ No newline at end of file |