Re: [PHP4BETA] PHP integration for Roxen (1.4-)
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] PHP integration for Roxen (1.4-) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1006@lists.php.net to get a copy of this message | ||
> >Does PHP support flagging a document as cacheable (no need to reparse
> >it for X seconds) or non-cacheable (depends on things like
> >client-version, databases etc)?
>
> Not at this time, no.
This is done by sending a Vary header from a PHP script. I am not sure
what you have in mind in terms of flagging a document. This is how you
flag it to tells proxy-caches when and under what conditions to cache.
Although, I guess you are referring to caching a pre-parsed PHP script.
Up until PHP4 this was not an issue since PHP wasn't pre-parsed nor cached
in any way internally. With some of the cool new things in PHP4,
something like this may be applicable, but it would depend on the
implementation. It's not script output that would be cached, it would be
the optimized pre-parsed representation of the script itself which when
executed would perform all the appropriate logic which would query
databases or do conditional things based on the client version. So I
don't think this concept really applies here either.
-Rasmus
--
PHP 4 Beta