WordPress.org

Plugin Directory

wp-cache

Opened 7 years ago

Closed 7 years ago

#516 closed defect (fixed)

Call ob_end_flush, not ob_end_clean, in phase 2

Reported by: boredzo Owned by: gallir
Priority: normal Severity: normal
Plugin: wp-cache 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 (1)

patch-flush.diff (389 bytes) - added by boredzo 7 years ago.
Patch to replace the call to ob_end_clean in phase 2 with a call to ob_end_flush instead.

Download all attachments as: .zip

Change History (3)

boredzo7 years ago

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

comment:1 boredzo7 years ago

  • 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 rmm5t7 years ago

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

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

Note: See TracTickets for help on using tickets.