commit 789eb51676bb120c4f62b51ae008e8233f81c126
parent ee8402fff873ebd16607a8c9429cfd1683d47028
Author: Jan Dankert <devnull@localhost>
Date: Sun, 7 Jan 2018 20:37:53 +0100
Datenbank-Transaktion direkt nach dem Action-Aufruf bestätigen.
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/cms-core/Dispatcher.class.php b/modules/cms-core/Dispatcher.class.php
@@ -103,16 +103,19 @@ class Dispatcher
throw $e;
}
+ $this->commitDatabaseTransaction();
+
if ( DEVELOPMENT )
- Logger::trace('Output' . "\n" . print_r($result, true));
+ Logger::trace('Output' . "\n" . print_r($result, true));
// Weitere Variablen anreichern.
$result['session'] = array('name' => session_name(), 'id' => session_id(), 'token' => token());
$result['version'] = OR_VERSION;
$result['api'] = '2';
- $this->commitDatabaseTransaction();
+ // Yes, closing the session flushes the session data and unlocks other waiting requests.
+ // Now another request is able to be executed.
Session::close();
// Ablaufzeit für den Inhalt auf aktuelle Zeit setzen.