[wp-trac] [WordPress Trac] #32504: WP_Network_Query class

WordPress Trac noreply at wordpress.org
Thu Jun 16 11:43:51 UTC 2016


#32504: WP_Network_Query class
-------------------------------------------------+-------------------------
 Reporter:  jeremyfelt                           |       Owner:  jeremyfelt
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  4.6
Component:  Networks and Sites                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  multisite
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by flixos90):

 Replying to [comment:19 spacedmonkey]:
 > Where does the clean_network_cache function need to be applied? When you
 update network options? That would effect meta queries.

 I'm not sure if it can be used anywhere in Core since Multinetwork is
 mostly plugin-territory atm. Using the function when network options
 (sitemeta) is updated could indeed make sense, however as far as I can see
 other meta areas of Core don't clean the cache of their object either when
 updating - correct me if I'm wrong here.

 > There is no delete / add / update network. However there is
 populate_network.

 It might make sense to use it there too. However I have never looked at
 that function in detail.

 I think for now, we should work on the class itself and its surrounding
 functionality to hopefully get it into 4.6 - using it in Core could be
 done later (it would only be in very few areas anyway). What do you think
 @jeremyfelt? Also additional eyes from @jjj would be helpful since this is
 likely to be adopted in WP Multi Network.

 Sorry for all the pings :)

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


More information about the wp-trac mailing list