summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index ba8d8df36..7a263bf22 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -90,16 +90,16 @@ function p_cached_xhtml($file){
{
//well then use the cache
$parsed = io_readfile($cache);
- $parsed .= "\n<!-- cachefile $cache used -->\n";
+ if($conf['allowdebug']) $parsed .= "\n<!-- cachefile $cache used -->\n";
}else{
$parsed = p_render('xhtml', p_cached_instructions($file),$info); //try to use cached instructions
if($info['cache']){
io_saveFile($cache,$parsed); //save cachefile
- $parsed .= "\n<!-- no cachefile used, but created -->\n";
+ if($conf['allowdebug']) $parsed .= "\n<!-- no cachefile used, but created -->\n";
}else{
@unlink($cache); //try to delete cachefile
- $parsed .= "\n<!-- no cachefile used, caching forbidden -->\n";
+ if($conf['allowdebug']) $parsed .= "\n<!-- no cachefile used, caching forbidden -->\n";
}
}