mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 06:51:33 +02:00
[ticket/13713] Fix caching and priorities
PHPBB3-13713
This commit is contained in:
@@ -100,6 +100,8 @@ abstract class base_user implements source_interface
|
||||
$user_ids[] = $row['user_id'];
|
||||
}
|
||||
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
// Load all user data with a single SQL query, needed for ranks and avatars
|
||||
$this->user_loader->load_users($user_ids);
|
||||
|
||||
|
@@ -46,7 +46,7 @@ class topic extends base_user
|
||||
* Results will be cached on a per-topic basis
|
||||
*/
|
||||
$query = $this->db->sql_build_query('SELECT', [
|
||||
'SELECT' => 'u.username, u.user_id, t.topic_poster',
|
||||
'SELECT' => 'u.username_clean, u.username, u.user_id, t.topic_poster',
|
||||
'FROM' => [
|
||||
USERS_TABLE => 'u',
|
||||
],
|
||||
|
Reference in New Issue
Block a user