Hi Michal, I did some research on that topic a while ago and I came to the conclusion, that compressing the output with php is a waste of CPU time. Better use apache's mod_deflate and set the types you wanna send compressed.
I donno about different output types though, like SOAP etc. Maybe this is done via the mime type... (just guessing into the dark!) Cheers Benjamin Am 31.07.2009 um 12:42 schrieb Michal Charemza: > Hi, > > I'm thinking about having my app output compressed using zlib/gzip. I > can turn on compression in php.ini, but I fear that this will compress > all ouput from the app: I am outputting some more or less > incompressible large files in views, so it would be pointless and > would waste CPU to compress them further. > > Is there a good way to control the output compression from within > Agavi? Would it be using a filter? Or maybe by turning on compression > in php.ini, but disabling within the app it for certain output types? > I'm unsure what's best/possible... > > Michal. > > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
