]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Dispatcher.pm
noch ein index der ein bestimmtes Query deutlich beschleunigt.
[mfinanz.git] / SL / Dispatcher.pm
index a2aa87e85eb6b85723f04971eec8229c5b647dac..3bf120668f919f0d3b17cb83308795f57f981547 100644 (file)
@@ -156,10 +156,10 @@ sub handle_request {
 
   $self->unrequire_bin_mozilla;
 
-  $::auth        = SL::Auth->new;
   $::cgi         = CGI->new('');
   $::locale      = Locale->new($::lx_office_conf{system}->{language});
   $::form        = Form->new;
+  $::auth        = SL::Auth->new;
   %::called_subs = ();
 
   eval { ($routing_type, $script_name, $action) = _route_request($script_name); 1; } or return;
@@ -231,11 +231,11 @@ sub handle_request {
   # cleanup
   $::locale   = undef;
   $::form     = undef;
-  $::auth     = undef;
   $::myconfig = ();
   Form::disconnect_standard_dbh;
   $::auth->expire_session_keys->save_session;
   $::auth->dbdisconnect;
+  $::auth     = undef;
 
   $::lxdebug->end_request;
   $::lxdebug->leave_sub;