X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDispatcher.pm;h=77074ccd02449be8c7ad3821d4987fb428087ee0;hb=9af3ce1ca10555dff25e4762d2eb1e7fa0c1e877;hp=17aaab0c699cb22b6891a8385a34f61f2fed69ea;hpb=3624b119556731da41e4ad395491ebb067f26565;p=kivitendo-erp.git diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 17aaab0c6..77074ccd0 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; @@ -327,9 +335,9 @@ sub handle_request { $::form = undef; $::myconfig = (); $::request = undef; - Form::disconnect_standard_dbh; - $::lxdebug->end_request; + SL::DBConnect::Cache->reset_all; + Form::disconnect_standard_dbh; $self->_watch_for_changed_files;