[wp-trac] [WordPress Trac] #38741: Introduce the concept of a large site in order to speed up the Users screen when there are many users
WordPress Trac
noreply at wordpress.org
Wed Sep 27 13:03:05 UTC 2017
#38741: Introduce the concept of a large site in order to speed up the Users screen
when there are many users
-------------------------------------+-------------------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: Users | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit- | Focuses: administration,
tests | performance
-------------------------------------+-------------------------------------
Changes (by johnbillion):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"41613"]:
{{{
#!CommitTicketReference repository="" revision="41613"
Users: Introduce the concept of a large site in order to speed up the
Users screen when there are many users.
Calling the `count_users()` function is expensive, regardless of the
counting strategy that's used, and it gets
slower the more users there are on a site. In order to speed up the Users
screen in the admin area, calling
`count_users()` can be avoided entirely while still displaying the total
count for users.
This introduces some new functions:
* `wp_is_large_user_count()`
* `wp_get_active_user_count()`
* `wp_update_active_user_count()`
A corresponding `wp_is_large_user_count` filter is also introduced.
Props tharsheblows, johnbillion
Fixes #38741
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38741#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list