From 5718a123132c4525a2c0de84c0a41ac723dd1064 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Mudr=C3=A1k?= Date: Wed, 10 Apr 2013 11:53:21 +0200 Subject: [PATCH] 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. --- lib/adminlib.php | 3 +++ 1 file changed, 3 insertions(+) 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'); } -- 2.43.0