Add some analysing stuff, rendered value is written now more often

This commit is contained in:
Michael Vogel 2016-01-14 21:56:37 +01:00
parent 9b5c6ed580
commit c4ba035ee3
7 changed files with 52 additions and 15 deletions

View file

@ -20,10 +20,10 @@ function replace_macros($s,$r) {
$stamp1 = microtime(true);
$a = get_app();
// pass $baseurl to all templates
$r['$baseurl'] = z_root();
$t = $a->template_engine();
try {
@ -1415,9 +1415,13 @@ function prepare_body(&$item,$attach = false, $preview = false) {
$item['hashtags'] = $hashtags;
$item['mentions'] = $mentions;
$test = $item["rendered-html"];
put_item_in_cache($item, true);
$s = $item["rendered-html"];
//if ($test != $s)
// $s .= "<hr>*********************************<hr>".$test;
$prep_arr = array('item' => $item, 'html' => $s, 'preview' => $preview);
call_hooks('prepare_body', $prep_arr);
$s = $prep_arr['html'];