I posted earlier about my inability to use Sysdeo Tomcat Plugin with Eclipse 3.1. I found the solution.
Wp-Cache2 is a WordPress Plugin to cache WordPress generated pages. However it doesn't work with in-built gzip compression. Lets see how we can solve it.
In PHP you can register a function to be executed when script processing is complete using register_shutdown_function.
In PHP 4.0.6 and below the registered shutdown functions are called after the request has been completed, including sending any output buffers. So a long running function can execute without affecting user experience.
However in PHP 4.1 and above the functions specified in the shutdown hook do not execute after output is closed. The upside is that you can send an echo or print in shutdown hook.