Re: RE: optimizing PHP for microseconds
| From: | Robert Cummings | Date: | Fri, 26 Mar 2010 02:15:59 +0000 |
| Subject: | Re: RE: optimizing PHP for microseconds | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303493@lists.php.net to get a copy of this message | ||
Daevid Vincent wrote:
If I have to wait 3 seconds for a page to render, that wait is noticeable. Dumb users will click refresh, and since (unbelievably in this day and age) PHP and mySQL don't know the user clicked 'stop' or 'refresh', and therefore mySQL will execute the same query a second time. That's an entirely different thread I've already ranted on about.You may find the following enlightening:
http://www.php.net/manual/en/function.ignore-user-abort.php http://www.php.net/manual/en/function.connection-aborted.php http://www.php.net/manual/en/function.connection-status.phpCheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP