MDL-39087 Purge all caches at the end of uninstall_plugin()
[moodle.git] / lib / adminlib.php
index 3156374..89fa8e8 100644 (file)
@@ -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');
 }