Re: cvs: php4 /pear/Experimental/Cache OutputCompression.php
| From: | Christian Stocker | Date: | Sun, 22 Apr 2001 19:18:58 +0000 |
| Subject: | Re: cvs: php4 /pear/Experimental/Cache OutputCompression.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-76@lists.php.net to get a copy of this message | ||
On Today, Adam Trachtenberg wrote:
> On Sun, 22 Apr 2001, Ulf Wendel wrote:
>
> > Added experimental class that deliveres compressed (gz) content to the client
> >
> > Although this code seems to be working Christian and I are not 100% satisfied
> > with it. We're wondering if there's another API that requires less overriden
> > methods, so we decided to put it into the Experimental directory requesting
> > comments.
>
> Isn't there a way to hook gz into the output buffering? This should be
> more efficient, right?
I thought about that first, as well. But we want to
save the gzipped data in the cache, to avoid another compressing for the
next cache hit, and this seems not to be possible with the ob_gzhandler().
With ob_get_contents() you only get the uncompressed content. and
ob_end_flush sends the output directly to the browser without any chance
to get the content.
chregu
--
nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich
pho...+41 1 451 6021 www...http://phant.ch/chregu
mob...+41 76 561 8860 ema...chregu@phant.ch