Re: PHP compared to JSP
| From: | Miguel Cruz | Date: | Sun, 05 May 2002 07:01:09 +0000 |
| Subject: | Re: PHP compared to JSP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96119@lists.php.net to get a copy of this message | ||
On Sat, 4 May 2002, Pag wrote:
>> Does PHP compile : NO
>> Does the user loading same page for 2nd time gets better response : YES
>> it can if caching is provided
>
> On a side not..isnt caching a bit like going against why PHP was built
> in the first place? I mean, information may get a bit out of date if we
> get a page on the cache instead of getting it "fresh" from the server.
Sometimes the developer knows how stale information can get before it
needs to be refreshed. An awful lot of pages fetched with GET args are
just straight-up retrievals from mostly-static databases, and can be
cached with impunity.
Also, there are other types of caching. On a multi-use machine that is
busy with other stuff but not getting a lot of web traffic, httpd may have
been paged out. And the PHP source file will be cached by the filesystem
for a while after being read, saving subsequent repeat visits the delay of
a disk operation.
miguel