From: Sven Schöling Date: Thu, 9 Jul 2015 13:46:13 +0000 (+0200) Subject: Dispatcher: FCGI Finish -> 10ms schneller im Browser X-Git-Tag: release-3.3.0beta~31^2~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=70242f1ef13bab60b55ae219c479d3fcfc3bacb2;p=kivitendo-erp.git Dispatcher: FCGI Finish -> 10ms schneller im Browser --- diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 17aaab0c6..e8725b5f3 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -318,6 +318,14 @@ sub handle_request { $::form->footer; + if ($self->_interface_is_fcgi) { + # fcgi? send send reponse on its way before cleanup. + $self->{request}->Flush; + $self->{request}->Finish; + } + + $::lxdebug->end_request; + # cleanup $::auth->save_session; $::auth->expire_sessions; @@ -329,8 +337,6 @@ sub handle_request { $::request = undef; Form::disconnect_standard_dbh; - $::lxdebug->end_request; - $self->_watch_for_changed_files; $::lxdebug->leave_sub;