[wp-trac] [WordPress Trac] #44921: User nicename discovery is slow to return
WordPress Trac
noreply at wordpress.org
Sat Sep 8 12:25:50 UTC 2018
#44921: User nicename discovery is slow to return
--------------------------+------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 2.0
Severity: normal | Resolution:
Keywords: | Focuses: performance
--------------------------+------------------------------
Comment (by spacedmonkey):
I would recommend, using `get_user_by('slug', $usernice);` instead of a
raw SQL query, as it would at go through caches.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44921#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list