kasparsd / widget-context-wporg

Widget Context for WordPress
https://widgetcontext.com
Other
43 stars 13 forks source link

In the wp_options table the widget_logic_options is 4MB #70

Open bedmas opened 3 weeks ago

bedmas commented 3 weeks ago

Is there any reason why this is option is 4MB. Is there a way to optimize this value?

kasparsd commented 3 weeks ago

That option is used to store the visibility rules for all widgets (similar to how WP core stores all widget placements per sidebar in a single option). Could it be that the site has a lot of unused widgets from undefined sidebars (used by previous themes for example)?

Technically the plugin should always delete all the visibility settings for nonexistent widgets here:

https://github.com/kasparsd/widget-context-wporg/blob/ecd82f43ea220c76eb41dde5aab93a5c11b1002b/src/WidgetContext.php#L304