note 69777 added to function.flush

From: Date: Wed, 20 Sep 2006 15:15:49 +0000
Subject: note 69777 added to function.flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-117352@lists.php.net to get a copy of this message
I have this fragment of code in one script // Redirect to Cache-Server header("Location: http://XXXXXX/cache.php?cacheid=".$cacheid); // Don't wait the db ob_flush(); flush(); // ob_clean(); // Log the impression web_logImpression ($cacheid, $web_config['clientname'], $rel, 'cache'); // Exit! exit; But the thing is that if it seems to be really slow for a simple redirect (maybe arround 10 seconds). I tried to comment the LOG line (which is a log to external db) and the permormance is increasing a lot!! (now it takes just a second!) It seems that the headers are not 'flushed' until the script logs and ends, it is possible? ---- Server IP: 130.206.1.5 Probable Submitter: 83.38.171.189 ---- Manual Page -- http://www.php.net/manual/en/function.flush.php Edit -- https://master.php.net/note/edit/69777 Del: integrated -- https://master.php.net/note/delete/69777/integrated Del: useless -- https://master.php.net/note/delete/69777/useless Del: bad code -- https://master.php.net/note/delete/69777/bad+code Del: spam -- https://master.php.net/note/delete/69777/spam Del: non-english -- https://master.php.net/note/delete/69777/non-english Del: in docs -- https://master.php.net/note/delete/69777/in+docs Del: other reasons-- https://master.php.net/note/delete/69777 Reject -- https://master.php.net/note/reject/69777 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117352) next »