[wp-trac] [WordPress Trac] #25344: Introduce *_network_meta() functions
WordPress Trac
noreply at wordpress.org
Wed Apr 5 21:51:59 UTC 2017
#25344: Introduce *_network_meta() functions
--------------------------------+-----------------------------
Reporter: jeremyfelt | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version: 3.0
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: multisite
--------------------------------+-----------------------------
Comment (by johnjamesjacoby):
[https://core.trac.wordpress.org/attachment/ticket/25344/25344.2.diff
25344.2.diff] does the following:
* Registers the global `site_meta` cache group
* Introduces `*_network_meta()` functions
* Replace `$wpdb` queries with calls to the above functions
* Remove network level `alloptions` and `nooptions` cache implementation
💜
A few things to note:
* Transients still call the old `_network_options()` functions to keep
filters intact
* Transients still use the same old cache group
* The `site-options` cache group is in use by a bunch of things that
aren't actually options, so it remains untouched and unaltered for this
patch
* Unit tests pass for me, but failed the first time I ran them. I'm not
sure why, because the `restapi` test group is causing out-of-memory issues
on my MacBook out-of-nowhere, and I can't complete the entire suite. (I
can run this on my Pro later and figure it out.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25344#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list