From 7484859c71d092c378f1fd25392e604c4ffdd931 Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Mon, 23 Jun 2014 00:23:15 +0530 Subject: [PATCH] [ticket/12759] Cache lang_options on memberlist PHPBB3-12759 --- phpBB/memberlist.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 63541dbee6..e42c7fab0c 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1382,6 +1382,7 @@ switch ($mode) { // Grab all profile fields from users in id cache for later use - similar to the poster cache $profile_fields_cache = $cp->grab_profile_fields_data($user_list); + $profile_rows = array(); // Filter the fields we don't want to show foreach ($profile_fields_cache as $user_id => $user_profile_fields) @@ -1392,8 +1393,14 @@ switch ($mode) { unset($profile_fields_cache[$user_id][$field_ident]); } + else + { + $profile_rows[] = $profile_field; + } } } + + $cp->cache_profile_fields_lang_options($profile_rows); } // If we sort by last active date we need to adjust the id cache due to user_lastvisit not being the last active date...