Urgent question - failed plugin and now getting internal server error
This seems unrelated to the Cache Flag plugin, and more likely due to some bad code in config/app.php (or app.web.php).

If you have either of those files, check what changes you’ve made to it/them recently.