[wp-trac] [WordPress Trac] #22846: Site transient autoload even when they have expiry time
WordPress Trac
noreply at wordpress.org
Thu Apr 14 23:49:01 UTC 2016
#22846: Site transient autoload even when they have expiry time
-------------------------------------------------+-------------------------
Reporter: mark-k | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Options, Meta APIs | Release
Severity: normal | Version: 3.4.2
Keywords: needs-unit-tests has-patch needs- | Resolution:
testing | Focuses: multisite,
| performance
-------------------------------------------------+-------------------------
Changes (by thomaswm):
* keywords: needs-patch needs-unit-tests => needs-unit-tests has-patch
needs-testing
Comment:
Replying to [comment:8 jeremyfelt]:
> We could probably add the autoload parameter to `_network_option()` and
`_site_option()`, though as mentioned, there is no concept of autoload in
`$wpdb->sitemeta`.
Alternatively, the code in `add_network_option()` could be changed so that
in single-site installations, it falls back to `add_option()`, but it sets
the `$autoload` parameter to 'no'. That way, single-site and multisite
installations would show the same behaviour. They both wouldn't autoload
network options (and transients).
See [attachment:22846.diff]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22846#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list