Moved transaction commit to above fastcgi_finish_request to prevent the page refreshing before the transaction actually commits.

This commit is contained in:
Matthew Barbour 2019-06-24 16:58:50 -05:00 committed by Shish
parent 1a7fa4663e
commit ae24b5c2e8

View file

@ -96,11 +96,14 @@ try {
$page->display();
}
if($database->transaction===true) {
$database->commit();
}
// saving cache data and profiling data to disk can happen later
if (function_exists("fastcgi_finish_request")) {
fastcgi_finish_request();
}
$database->commit();
$_shm_ctx->log_endok();
} catch (Exception $e) {
if ($database) {