Moved transaction commit to above fastcgi_finish_request to prevent the page refreshing before the transaction actually commits.
This commit is contained in:
parent
1a7fa4663e
commit
ae24b5c2e8
1 changed files with 4 additions and 1 deletions
|
@ -96,11 +96,14 @@ try {
|
||||||
$page->display();
|
$page->display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($database->transaction===true) {
|
||||||
|
$database->commit();
|
||||||
|
}
|
||||||
|
|
||||||
// saving cache data and profiling data to disk can happen later
|
// saving cache data and profiling data to disk can happen later
|
||||||
if (function_exists("fastcgi_finish_request")) {
|
if (function_exists("fastcgi_finish_request")) {
|
||||||
fastcgi_finish_request();
|
fastcgi_finish_request();
|
||||||
}
|
}
|
||||||
$database->commit();
|
|
||||||
$_shm_ctx->log_endok();
|
$_shm_ctx->log_endok();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
if ($database) {
|
if ($database) {
|
||||||
|
|
Reference in a new issue