[wp-trac] [WordPress Trac] #27003: Introduce wp_get_network() and begin cleanup of multisite load

WordPress Trac noreply at wordpress.org
Wed Mar 19 20:58:39 UTC 2014


#27003: Introduce wp_get_network() and begin cleanup of multisite load
----------------------------+------------------------
 Reporter:  jeremyfelt      |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.9
Component:  Bootstrap/Load  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  needs-testing   |     Focuses:  multisite
----------------------------+------------------------

Comment (by jeremyfelt):

 * In `get_network_by_path()`, we use `wp_get_network()` to retrieve the
 same object we just retrieved. It may be worth dropping that additional
 call for now until we know it's needed.
 * Actions for `found_site_by_path` and `found_network_by_path` when sites
 and networks are being returned by their respective functions could be
 useful as a way for sunrise to hook in and set custom caching (or other
 functionality) for repeat requests.
 * nacin made mention of using `wp_cache_add()` in a previous comment.
 We're still using `wp_cache_set()` during the bootstrap in ms-settings.

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


More information about the wp-trac mailing list