From 6022a9e9cdf12d60a138f06300285f231d2c2976 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 9 Feb 2013 04:22:11 -0800 Subject: more profiling - cache the qcomment list so we don't have to look it up for every rendered item --- boot.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 4c78f0b9c..bd57e4171 100644 --- a/boot.php +++ b/boot.php @@ -1883,6 +1883,8 @@ if(! function_exists('load_contact_links')) { if(! $uid || x($a->contacts,'empty')) return; + logger('load_contact_links'); + $r = q("SELECT abook_id, abook_flags, abook_my_perms, abook_their_perms, xchan_hash, xchan_photo_m, xchan_name, xchan_url from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not (abook_flags & %d) ", intval($uid), intval(ABOOK_FLAG_SELF) -- cgit v1.2.3