[wp-trac] [WordPress Trac] #37923: Introduce shared wp_blogmeta database table for multisite installation

WordPress Trac noreply at wordpress.org
Wed Mar 29 07:36:34 UTC 2017


#37923: Introduce shared wp_blogmeta database table for multisite installation
------------------------------------------------+--------------------------
 Reporter:  johnjamesjacoby                     |       Owner:
     Type:  feature request                     |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Networks and Sites                  |  Review
 Severity:  normal                              |     Version:
 Keywords:  2nd-opinion has-patch dev-feedback  |  Resolution:
                                                |     Focuses:  multisite
------------------------------------------------+--------------------------

Comment (by flixos90):

 @johnjamesjacoby Good point. I think we shouldn't introduce new `blog`
 functions unless it would be totally confusing to call something `site`
 (for parity regarding related functionality).

 In this case I think:
 * Use `site_meta` and `network_meta` (if we do this) since those are
 completely new APIs.
 * We should introduce `network_transient` functions to match the
 `network_option` functions.
 * We should introduce `blog_transient` functions to match `blog_option`
 functions. We can't call it `site_transient` because of the naming
 collision. I don't think it's necessarily expected that this function name
 matches the new `site_meta` since it is not apparent where
 `blog_transient` data is stored, sometimes in object cache if available. I
 actually would expect `blog_transient` to work similarly to `blog_option`
 since this is where those transients have been stored. I think you're
 talking about storing transients in the new table, but `blog_transient`
 would be confusing as a name for that functionality. I don't have a better
 name, but I also don't know yet whether this is necessary to have.
 * Prefixing with `wp_` should be the final step only if we really can't
 figure this out.

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


More information about the wp-trac mailing list