if(! function_exists('prepare_body')) {
function prepare_body($item,$attach = false) {
+ $cache = get_config('system','itemcache');
+
+ if (($cache != '')) {
+ $cachefile = $cache."/".$item["guid"]."-".strtotime($item["edited"])."-".$attach;
+ if (file_exists($cachefile))
+ return(file_get_contents($cachefile));
+ }
+
call_hooks('prepare_body_init', $item);
$s = prepare_text($item['body']);
call_hooks('prepare_body', $prep_arr);
$s = $prep_arr['html'];
- if(! $attach)
+ if(! $attach) {
+ if ($cache != '')
+ file_put_contents($cachefile, $s);
return $s;
+ }
$arr = explode(',',$item['attach']);
if(count($arr)) {
$prep_arr = array('item' => $item, 'html' => $s);
call_hooks('prepare_body_final', $prep_arr);
+
+ if ($cache != '')
+ file_put_contents($cachefile, $prep_arr['html']);
+
return $prep_arr['html'];
}}
}
.tag {
/*background: url("../../../images/tag_b.png") repeat-x center left;*/
- color: #3465A4;
+ color: #999;
padding-left: 3px;
font-size: 12px;
}
.tag a {
padding-right: 5px;
/*background: url("../../../images/tag.png") no-repeat center right;*/
- color: #3465A4;
+ color: #999;
}
.wwto {
position: absolute !important;