Support » Plugin: Stream » Settings page doesn’t load at all.

  • Hi,

    I noticed that Stream settings page doesn’t load on my installation. I have almost 150k of users and almost 5M of wp_usermeta entries.

    I found that in \WP_Stream\Settings::render_field on line 806 there is a call

    $users = count_users(); done in the loop

    
    foreach ( $this->get_roles() as $role_id => $role ) {
    .....
    }

    It seems that it’s safe to move $users = count_users() before this loop without any impact on the plugin behaviour.

    Just a note: count_users() is being executed 75 times on my installation what makes Settings page unavailable due to PHP timeouts.

    Thanks,
    Lukas

    • This topic was modified 2 years, 7 months ago by Lukas Pawlik.
  • The topic ‘Settings page doesn’t load at all.’ is closed to new replies.