reduce visible latency
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 15 Nov 2005 07:55:52 +0000 (07:55 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 15 Nov 2005 07:55:52 +0000 (07:55 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@156 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
htdocs/carnet/mescontacts_pdf.php
htdocs/login.php
include/platal/page.inc.php

index 109a44d..f5a7658 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ New :
 
     * Core :
         - HTTP redirection safe wrt Session (should solve login problems).  -MC
+        - Free $_SESSION before the page rendering, to release locks.       -MC
 
     * Documentation :
         - Documentation now use Wiki                                        -Car
index 3dce194..b6b25fb 100644 (file)
@@ -24,6 +24,8 @@ new_skinned_page('index.tpl', AUTH_COOKIE);
 require_once('contacts.pdf.inc.php');
 require_once('user.func.inc.php');
 
+session_write_close();
+
 $sql = "SELECT  a.alias
           FROM  aliases       AS a
     INNER JOIN  auth_user_md5 AS u ON ( a.id = u.user_id )
index d90c516..d67ee86 100644 (file)
@@ -22,7 +22,6 @@
 require_once('xorg.inc.php');
 new_skinned_page('login.tpl', AUTH_COOKIE);
 
-
 $res = $globals->xdb->query('SELECT date, naissance FROM auth_user_md5 WHERE user_id={?}', Session::getInt('uid'));
 list($date, $naissance) = $res->fetchOneRow();
 
index fb527be..dd039ea 100644 (file)
@@ -109,6 +109,9 @@ class PlatalPage extends Smarty
     function _run($skin)
     {
         global $globals, $TIME_BEGIN;
+
+        session_write_close();
+
         $this->assign("xorg_errors", $this->_errors);
         $this->assign("xorg_failure", $this->_failure);
         
@@ -128,7 +131,7 @@ class PlatalPage extends Smarty
 
         $this->assign('validate', urlencode($globals->baseurl.'/valid.html'));
         $result = $this->fetch($skin);
-        $ttime  = sprintf('Temps total: %.02fs<br />', microtime_float() - $TIME_BEGIN);
+        $ttime .= sprintf('Temps total: %.02fs<br />', microtime_float() - $TIME_BEGIN);
         $replc  = "<span class='erreur'>VALIDATION HTML INACTIVE</span><br />";
 
         if ($globals->debug & 2) {