[wp-trac] [WordPress Trac] #42743: Disable wp_options autoload for inactive widgets

WordPress Trac noreply at wordpress.org
Wed Nov 29 04:26:01 UTC 2017

#42743: Disable wp_options autoload for inactive widgets
 Reporter:  ComputerGuru  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
 Options/settings for all widgets are saved in wp_options with
 autoload=yes, but autoload is enabled for the wp_options even for
 deactivated widgets.

 On sites with many widgets installed (but not even activated), the size of
 data transferred from the DB to the PHP host on each and every page
 request can add significant overhead and introduce noticeable slowdowns.

 I can't see a reason why autoload can't be disabled on deactivation of a
 widget, preloaded on navigation to the widget settings page, and then re-
 enabled when said widget is activated.

Ticket URL: <https://core.trac.wordpress.org/ticket/42743>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list