mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Several performance improvements
This commit is contained in:
parent
471963a142
commit
90a8d6f0f5
12 changed files with 236 additions and 117 deletions
|
@ -1416,7 +1416,15 @@ function prepare_body(&$item,$attach = false, $preview = false) {
|
|||
$item['mentions'] = $mentions;
|
||||
|
||||
$test = $item["rendered-html"];
|
||||
put_item_in_cache($item, true);
|
||||
|
||||
// Update the cached values if there is no "zrl=..." on the links
|
||||
$update = (!local_user() and !remote_user() and ($item["uid"] == 0));
|
||||
|
||||
// Or update it if the current viewer is the intented viewer
|
||||
if (($item["uid"] == local_user()) AND ($item["uid"] != 0))
|
||||
$update = true;
|
||||
|
||||
put_item_in_cache($item, $update);
|
||||
$s = $item["rendered-html"];
|
||||
|
||||
//if ($test != $s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue