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

WordPress Trac noreply at wordpress.org
Thu Feb 20 06:19:39 UTC 2014


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

Comment (by jeremyfelt):

 Replying to [comment:24 nacin]:
 > The one problem with this is it'll result in a new cache key for every
 unique URI request.

 > Not going to lie, I kind of just want to load all networks into memory
 and bypass that whole mess.

 Good point(s). There's something in this combo. I was looking at adding
 caching to `wp_get_network()` and the path stuff was making less sense. My
 guess is that the number of multi network installs where the number of
 networks is larger than 10, 20, 50 (?) is very low. Storing that into
 memory with the ability to handle larger setups via sunrise makes sense.

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


More information about the wp-trac mailing list