Re: Scripts are fast locally, but slow on remote server

From: Date: Wed, 16 Jan 2008 07:24:59 +0000
Subject: Re: Scripts are fast locally, but slow on remote server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-267373@lists.php.net to get a copy of this message
Dave M G wrote: > PHP list, > > I have a set of PHP scripts that seem to be efficient and quick enough > both on my home testing environment, and a few different web-hosting > services I use. > > However, on one particular web-hosting service, there is often a very > painful 10 second (!) lag when first loading up the scripts. This long > lag time can sometimes be manifest not just on the first page loaded, > but the second and maybe third as well. > > But then after the first initial pages are loaded, the site seems to > speed up to what I would consider normal download pages for times. Might this be a name-server issue? For whatever reason the first invocation waits for a time-out, which could take a while, but the second gets an near-immediate response as the negative answer is now cached. /Per Jessen, Zürich

« previous php.general (#267373) next »