I have a plugin that is using the Moodle Cache API, thus it is implementing the db/caches.php file along with source and loader classes.
When uninstalling this plugin I get a coding_exception in cache/classes/definition.php, as the cache definitions are loaded from the configuration in MUC (moodledata/muc/config.php). Although the plugin is removed from disk, the MUC still contains its cache definition and is looking for the source and loader files.
The question is then:
Is this a bug in the Moodle plugin uninstall process or do I have to implement some code in db/uninstall.php of my plugin to unregister the cache class?
There doesn't seem to be functions readily available for the latter in cache or cachehelper.
The code can be found here: https://bitbucket.org/laerdalmedical/moodle-ltisource_ecohub/
Thanks in advance!