From: David Mudrák Date: Wed, 10 Apr 2013 09:53:21 +0000 (+0200) Subject: MDL-39087 Purge all caches at the end of uninstall_plugin() X-Git-Tag: v2.5.0-rc1~298^2~11 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=5718a123132c4525a2c0de84c0a41ac723dd1064 MDL-39087 Purge all caches at the end of uninstall_plugin() This is necessary now as many plugins management related features started to use MUC intensively recently. During the development of this issue, we realized that the plugin was still considered as installed if caches were not purged. --- diff --git a/lib/adminlib.php b/lib/adminlib.php index 3156374c2df..89fa8e8f9d4 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -321,6 +321,9 @@ function uninstall_plugin($type, $name) { // remove event handlers and dequeue pending events events_uninstall($component); + // Finally purge all caches. + purge_all_caches(); + echo $OUTPUT->notification(get_string('success'), 'notifysuccess'); }