1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 23:11:45 +02:00

[ticket/13713] Rework names caching

PHPBB3-13713
This commit is contained in:
lavigor
2018-09-15 16:03:34 +03:00
committed by Marc Alexander
parent 5e26380da7
commit e769a036b6
7 changed files with 68 additions and 33 deletions

View File

@@ -39,7 +39,8 @@ class user extends base_user
'FROM' => [
USERS_TABLE => 'u',
],
'WHERE' => $this->db->sql_in_set('u.user_type', [USER_NORMAL, USER_FOUNDER]),
'WHERE' => $this->db->sql_in_set('u.user_type', [USER_NORMAL, USER_FOUNDER]) . '
AND u.username_clean ' . $this->db->sql_like_expression($keyword . $this->db->get_any_char()),
'ORDER_BY' => 'u.user_lastvisit DESC'
]);
return $query;