Tuning PHP

  1. If you have CPU cycles to spare, or if bandwidth is a more constrained resource than CPU cycles, you can add the following to php.ini:

    output_handler = ob_gzhandler

    A comment in php.ini explains:

    "You can redirect all of the output of your scripts to a function. For example, if you set output_handler to 'ob_gzhandler', output will be transparently compressed for browsers that support gzip or deflate encoding. Setting an output handler automatically turns on output buffering."

This functionality is further described here.

  • very interesting presentation from a PHP developer
  • Additional resources:

     
     

    Drupal is a registered trademark of Dries Buytaert.