From d205219bace23e0f2e8197b2c70101975e9c5283 Mon Sep 17 00:00:00 2001 From: JasWSInc Date: Fri, 25 Apr 2014 00:25:23 -0800 Subject: [PATCH 1/2] See https://github.com/WebSharks/Quick-Cache/issues/97#issuecomment-41369297 --- quick-cache/includes/advanced-cache.tpl.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quick-cache/includes/advanced-cache.tpl.php b/quick-cache/includes/advanced-cache.tpl.php index 30fd40d..b803b08 100644 --- a/quick-cache/includes/advanced-cache.tpl.php +++ b/quick-cache/includes/advanced-cache.tpl.php @@ -836,9 +836,8 @@ public function disable_wp_ob_end_flush_all_e_notice() */ public function output_buffer_callback_handler($buffer, $phase) { - if($phase !== (PHP_OUTPUT_HANDLER_START | PHP_OUTPUT_HANDLER_END)) - // Quick Cache does NOT chunk it's output buffering; so this should never happen. - throw new \exception(sprintf(__('Unexpected OB phase: `%1$s`.', $this->text_domain), $phase)); + if(!($phase & PHP_OUTPUT_HANDLER_END)) // We do NOT chunk the buffer; so this should NOT occur. + throw new \exception(sprintf(__('Unexpected OB phase: `%1$s` on `%2$s`.', $this->text_domain), $phase)); # Exclusion checks; there are MANY of these... From 892ddf7a323b99bf55f9374f48c8cc071bad50aa Mon Sep 17 00:00:00 2001 From: JasWSInc Date: Fri, 25 Apr 2014 00:27:12 -0800 Subject: [PATCH 2/2] See https://github.com/WebSharks/Quick-Cache/issues/97#issuecomment-41369297 --- quick-cache/includes/advanced-cache.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick-cache/includes/advanced-cache.tpl.php b/quick-cache/includes/advanced-cache.tpl.php index b803b08..83771da 100644 --- a/quick-cache/includes/advanced-cache.tpl.php +++ b/quick-cache/includes/advanced-cache.tpl.php @@ -837,7 +837,7 @@ public function disable_wp_ob_end_flush_all_e_notice() public function output_buffer_callback_handler($buffer, $phase) { if(!($phase & PHP_OUTPUT_HANDLER_END)) // We do NOT chunk the buffer; so this should NOT occur. - throw new \exception(sprintf(__('Unexpected OB phase: `%1$s` on `%2$s`.', $this->text_domain), $phase)); + throw new \exception(sprintf(__('Unexpected OB phase: `%1$s`.', $this->text_domain), $phase)); # Exclusion checks; there are MANY of these...