Make WordPress Core

Opened 5 years ago

Last modified 4 years ago

#42743 new defect (bug)

Disable wp_options autoload for inactive widgets

Reported by: computerguru's profile ComputerGuru Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords:
Focuses: performance Cc:


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.

Change History (2)

#1 @westonruter
5 years ago

I think this will be solved by #35669.

#2 @pento
4 years ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.