I wrote this patch to fix the failure mode of Flow-Flow. Currently if the database connection is flaky, there is an unhandled error thrown. The least that should be done, is to prevent the error from being cached. Currently the Flow-Flow error is just a normal HTTP 200 OK respons like any other, which is a design flaw in my opinion.
--- /data/backups/data/wordpress/htdocs/wp-content/plugins/flow-flow/includes/db/FFDB.php 2020-06-06 10:01:59.000000000 +0300
+++ FFDB.php 2020-06-06 10:14:41.258273222 +0300
@@ -45,3 +45,2 @@
} catch(\Exception $e){
+ header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error (Flow-Flow bug)', true, 500);
+ nocache_headers();