[wp-trac] [WordPress Trac] #22846: Site transient autoload even when they have expiry time

WordPress Trac noreply at wordpress.org
Wed Apr 13 05:04:33 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 Release
Component:  Options, Meta APIs            |     Version:  3.4.2
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  multisite,
                                          |  performance
------------------------------------------+--------------------------------
Changes (by jeremyfelt):

 * keywords:  needs-patch => needs-patch needs-unit-tests
 * milestone:  Awaiting Review => Future Release


Comment:

 This doesn't just impact site transients, but any use of
 `add/update_site_option` that expects to fallback to `add/update_option`
 option in a single site environment.

 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`. We would need to make it clear that the parameter is
 only used in fallback situations. Is that worth it?

 A slightly more weird route (IMO) would be to add the concept of auto
 loading site meta. `wp_load_core_site_options()` would then pull from a
 more dynamic list. I'd hesitate to go here though.

 Related: the autoload parameter was added to `update_option()` in 4.2,
 #26394.

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


More information about the wp-trac mailing list