Call ob_end_flush, not ob_end_clean, in phase 2
|Reported by:||boredzo||Owned by:||gallir|
|Plugin:||wp-cache||Keywords:||patch blank empty response|
The PHP docs state that ob_end_clean simply drops the output buffer, whereas ob_end_flush sends the output buffer to the client. The latter behavior is required to avoid an empty response the first time a given file is requested (according to “WP-Cache and the Blank Page problem”). I have tested the fix and it works as advertised.