The caching settings are stored in moodledata, in [moodledata]/muc/config.php
Rename that to config.php.disabled, and see if that lets you back in. (If it does, then you can delete the old file. If it does not work, you can rename it back and try something else.)