note 69777 rejected from function.flush by bobby
| From: | bobby@php.net | Date: | Wed, 20 Sep 2006 15:29:30 +0000 |
| Subject: | note 69777 rejected from function.flush by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117353@lists.php.net to get a copy of this message | ||
Note Submitter: iddover at gmail dot com
----
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?