[wp-trac] [WordPress Trac] #28160: Get authors user query in-efficient when dealing with large numbers of users.
WordPress Trac
noreply at wordpress.org
Wed Jul 12 14:48:21 UTC 2017
#28160: Get authors user query in-efficient when dealing with large numbers of
users.
-------------------------+------------------------------
Reporter: l3rady | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.9
Severity: major | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by toddlevy):
Replying to [comment:7 brandonliles]:
> I made my first WP Plugin to hack around this. It basically just
creates/maintains a cache table of author user_ids.
>
> https://github.com/bliles/wp-admin10x
Thank you for creating and sharing this.
Question: will this remove deleted users from cache table?
Not seeing it in the code but perhaps I'm missing it.
Thinking something like this would to the trick...
{{{#!php
add_action('deleted_user', function($id, $reassign) {
$a10x = new Admin10X();
$a10x->del_author($id);
}, 10, 2);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28160#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list