[wp-trac] [WordPress Trac] #22846: Site transient autoload even when they have expiry time
WordPress Trac
noreply at wordpress.org
Sat Apr 16 19:47:17 UTC 2016
#22846: Site transient autoload even when they have expiry time
--------------------------------------+------------------------------------
Reporter: mark-k | Owner: jeremyfelt
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6
Component: Options, Meta APIs | Version: 2.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: multisite,
| performance
--------------------------------------+------------------------------------
Changes (by jeremyfelt):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"37223"]:
{{{
#!CommitTicketReference repository="" revision="37223"
Options: Do not set network options to autoload in single site
When multisite is not configured, the `_site_transient()` and
`_site_option()` functions fallback to `_option()` and store network
"meta/options" in `wp_options`.
Previously, those calls to `_option()` did not explicitly set the
`autoload` parameter and anything assigned as a transient or option at the
network level would be set to `autoload` by default, even though autoload
is not yet a concept at the network option level.
This changes that behavior and forces the `autoload` setting to `no`. If
`autoload` is desired, the single site option functions should be used.
Props thomaswm.
Fixes #22846.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22846#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list