1
0
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:
lavigor
2018-07-29 03:55:16 +03:00
committed by Marc Alexander
parent e616ec025c
commit 99d57e2743
3 changed files with 6 additions and 8 deletions

View File

@@ -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);

View File

@@ -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',
],