-
Sub-task
-
Resolution: Fixed
-
Minor
-
3.0.6, 3.0.7, 3.0.7-PL1
-
None
Currently we have redundant SQL query in search.php in order to carry out search for unread posts:
if (!empty($unread_list)) |
{
|
$sql = 'SELECT t.topic_id
|
FROM ' . TOPICS_TABLE . ' t |
WHERE ' . $db->sql_in_set('t.topic_id', array_keys($unread_list)) . " |
$sql_sort";
|
$field = 'topic_id'; |
}
|
It should be dropped to speedup the things.
- is duplicated by
-
PHPBB-9636 Search for unread posts uses message_body template instead of search_results template when there's no unread posts to display.
- Closed