Bug Widget Newest Members might use inefficient query

There is a bug in this version
K

Kirby

Guest
PHP:

Code:
$userFinder = $this->finder('XF:User')
    ->isValidUser()
    ->order('register_date', 'DESC')
    ->limit($this->options['limit']);

This sometimes picks index user_state / is_banned_user_state which is inefficient - ddding an index hint for register_date seems to fix this.

Continue reading...