From ad157cec280152ab5d0494f3beb0b6e796c47bd7 Mon Sep 17 00:00:00 2001 From: e107steved Date: Wed, 5 Nov 2008 21:17:50 +0000 Subject: [PATCH] Bugtracker #4566 - Possible fix for cached comments on downloads --- comment.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/comment.php b/comment.php index 74885865a..32bb7430a 100644 --- a/comment.php +++ b/comment.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/comment.php,v $ -| $Revision: 1.7 $ -| $Date: 2008-09-23 19:44:08 $ +| $Revision: 1.8 $ +| $Date: 2008-11-05 21:17:50 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -402,12 +402,15 @@ if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'] && $table == "n } } -if (!strstr(e_QUERY, "poll")) + +//if (!strstr(e_QUERY, "poll")) +// If output buffering started, cache the result +if ($comment_ob_start) { $cache = ob_get_contents(); $e107cache->set("comment.php?{$table}.{$field}", $cache); + ob_end_flush(); // dump the buffer we started } -if ($comment_ob_start) ob_end_flush(); // dump the buffer we started require_once(FOOTERF);