Ticket #516 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Call ob_end_flush, not ob_end_clean, in phase 2

Reported by: boredzo Assigned to: gallir
Priority: normal Component: wp-cache
Severity: normal Keywords: patch blank empty response
Cc:

Description

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.

Attachments

patch-flush.diff (389 bytes) - added by boredzo on 12/31/06 09:20:45.
Patch to replace the call to ob_end_clean in phase 2 with a call to ob_end_flush instead.

Change History

12/31/06 09:20:45 changed by boredzo

  • attachment patch-flush.diff added.

Patch to replace the call to ob_end_clean in phase 2 with a call to ob_end_flush instead.

12/31/06 09:22:36 changed by boredzo

  • type changed from enhancement to defect.

Yipe! I didn't mean to change the type; sorry. This is properly a defect, since the “blank page problem” is a bug.

01/21/07 21:24:06 changed by rmm5t

  • status changed from new to closed.
  • resolution set to fixed.

This looks like this was already fixed in ChangeSet? [7181]