mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 00:41:52 +02:00
Bugtracker #4566 - Possible fix for cached comments on downloads
This commit is contained in:
11
comment.php
11
comment.php
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/comment.php,v $
|
| $Source: /cvs_backup/e107_0.8/comment.php,v $
|
||||||
| $Revision: 1.7 $
|
| $Revision: 1.8 $
|
||||||
| $Date: 2008-09-23 19:44:08 $
|
| $Date: 2008-11-05 21:17:50 $
|
||||||
| $Author: e107steved $
|
| $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();
|
$cache = ob_get_contents();
|
||||||
$e107cache->set("comment.php?{$table}.{$field}", $cache);
|
$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);
|
require_once(FOOTERF);
|
||||||
|
Reference in New Issue
Block a user