Ticket #516 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Call ob_end_flush, not ob_end_clean, in phase 2

Reported by: boredzo Owned by: 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 Download (389 bytes) - added by boredzo 5 years ago.
Patch to replace the call to ob_end_clean in phase 2 with a call to ob_end_flush instead.

Change History

Changed 5 years ago by boredzo

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

comment:1 Changed 5 years ago 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.

comment:2 Changed 5 years ago by rmm5t

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.