ZenphotoCMS Forum
Performance hack question - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Performance hack question (/thread-4030.html)



Performance hack question - Laurent - 2008-11-05

Hi all,

In the performance hack section i saw this :

SECOND: If your web server is supporting gzip compression, edit index.php and add following line at Top of the page. header("Vary: Accept-Encoding");if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], ‘gzip’)) ob_start(”ob_gzhandler”); else ob_start();
But wicth index.php is it. The root index.php file or the index.php file in theme directory.
I put in the root at this time, but i don't really see something different.

Regards




Performance hack question - Laurent - 2008-11-15

Hi,

no body for a answer ?
Thanks

Laurent




Performance hack question - jsumners - 2008-11-16

It would be the root index.php. That is the script that processes everything.




Performance hack question - Laurent - 2008-11-16

Thanks is what i do.

Regards
Laurent




Performance hack question - gwmbox - 2010-12-15

Is the code above to gzip your zenphoto/zenpage site still current or is there a better way?

Cheers

GW




Performance hack question - acrylian - 2010-12-15

I can't answer, I never tried this.