[wp-trac] [WordPress Trac] #38175: Use `get_sites()` instead of a database lookup in `get_id_from_blogname()`

WordPress Trac noreply at wordpress.org
Tue Sep 27 18:17:25 UTC 2016


#38175: Use `get_sites()` instead of a database lookup in `get_id_from_blogname()`
--------------------------------+-------------------------
 Reporter:  jeremyfelt          |       Owner:  jeremyfelt
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.7
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38659"]:
 {{{
 #!CommitTicketReference repository="" revision="38659"
 Multisite: Use `get_sites()` instead of a database lookup in
 `get_id_from_blogname()`.

 Because queries generated via `get_sites()` are cached, we can remove the
 `get_id_from_blogname` cache key.

 Props flixos90.
 Fixes #38175.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38175#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list