Memberlist.php:
Around line 171~~
Code: Select all
while ($row = $db->sql_fetchrow($result))
In the while you call:
Code: Select all
if ($auth->acl_get('f_list', $forum_id))
(Okey for this, it's not easy to replace by a var i agree)
but after:
Code: Select all
if ($row['group_type'] == GROUP_HIDDEN && !$auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel') && $row['ug_user_id'] != $user->data['user_id'])
and again:
Code: Select all
'U_PM' => ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($row['user_allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
Search.php:
Count any acl methods... try to replace some of them by a var previously declared... You'll feel the difference in big board...
But i mean for acl method, but all my previous post are available for $user class also...
The mod used method is
data:
$user->data['a_random_data']
Why call the method each time in all loop (foreach while eand other...)
In most of time where you don't modify the data of current user, why call always this method??
When we can cache these data in one var instead call a method, why don't do it???