more performance work
This commit is contained in:
parent
9fc87d43c9
commit
e4fe068ed5
@ -1185,6 +1185,14 @@ function unobscure(&$item) {
|
||||
$item['title'] = crypto_unencapsulate(json_decode_plus($item['title']),$key);
|
||||
if($item['body'])
|
||||
$item['body'] = crypto_unencapsulate(json_decode_plus($item['body']),$key);
|
||||
if(get_config('system','item_cache')) {
|
||||
q("update item set title = '%s', body = '%s', item_flags = %d where id = %d",
|
||||
dbesc($item['title']),
|
||||
dbesc($item['body']),
|
||||
intval($item['item_flags'] - ITEM_OBSCURED),
|
||||
intval($item['id'])
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1371,7 +1379,7 @@ function generate_named_map($location) {
|
||||
|
||||
function prepare_body(&$item,$attach = false) {
|
||||
|
||||
if(get_config('system','item_cache') && $item['body'])
|
||||
if(get_config('system','item_cache') && $item['html'])
|
||||
return $item['html'];
|
||||
|
||||
call_hooks('prepare_body_init', $item);
|
||||
|
Reference in New Issue
Block a user