Large Number of Autoloaded Options Set
-
Hello,
It looks like your plugin creates a crazy number of autoloaded options such as …
alg_wc_pif_all_products_field_1_reset (0.00Kb) Autoloaded alg_wc_pif_all_products_reset (0.00Kb) Autoloaded alg_wc_pif_class_global_1 (0.00Kb) Autoloaded alg_wc_pif_color_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_default_value_global_1 (0.00Kb) Autoloaded alg_wc_pif_enabled_global_1 (0.00Kb) Autoloaded alg_wc_pif_general_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_global_enabled (0.00Kb) Autoloaded alg_wc_pif_global_total_number (0.00Kb) Autoloaded alg_wc_pif_input_restrictions_max_global_1 (0.00Kb) Autoloaded alg_wc_pif_input_restrictions_maxlength_global_1 (0.00Kb) Autoloaded alg_wc_pif_input_restrictions_min_global_1 (0.00Kb) Autoloaded alg_wc_pif_input_restrictions_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_input_restrictions_pattern_global_1 (0.00Kb) Autoloaded alg_wc_pif_input_restrictions_step_global_1 (0.00Kb) Autoloaded alg_wc_pif_local_enabled (0.00Kb) Autoloaded alg_wc_pif_local_total_number_default (0.00Kb) Autoloaded alg_wc_pif_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_per_product_reset (0.00Kb) Autoloaded alg_wc_pif_placeholder_global_1 (0.00Kb) Autoloaded alg_wc_pif_required_global_1 (0.00Kb) Autoloaded alg_wc_pif_required_message_global_1 (0.03Kb) Autoloaded alg_wc_pif_select_radio_option_type_global_1 (0.00Kb) Autoloaded alg_wc_pif_style_global_1 (0.00Kb) Autoloaded alg_wc_pif_title_global_1 (0.01Kb) Autoloaded alg_wc_pif_type_checkbox_no_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_checkbox_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_checkbox_yes_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_color_allow_typing_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_date_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_datepicker_addyear_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_datepicker_firstday_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_datepicker_format_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_datepicker_maxdate_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_datepicker_mindate_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_datepicker_yearrange_global_1 (0.01Kb) Autoloaded alg_wc_pif_type_file_accept_global_1 (0.01Kb) Autoloaded alg_wc_pif_type_file_max_size_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_file_max_size_msg_global_1 (0.02Kb) Autoloaded alg_wc_pif_type_file_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_file_wrong_type_msg_global_1 (0.02Kb) Autoloaded alg_wc_pif_type_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_select_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_select_radio_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_time_options_global_1 (0.00Kb) Autoloaded alg_wc_pif_type_timepicker_format_global_1 (0.01Kb) Autoloaded alg_wc_pif_type_timepicker_interval_global_1 (0.00Kb) Autoloaded alg_wc_pif_version (0.00Kb) Autoloaded
Since WordPress v6.1 the “Dashboard – Tools – Site Health” check has started recommending that some sites should be using a “Persistent Object Cache”?if a site has more than 500 autoloaded options. Your plugin is generating nearly 10% of that number!
Could you please see your way to either stop adding all these options by default if they’re not being used; none of the options above have been accessed with a
get_option()
,update_option()
oradd_option()
command on our site since the plugin was installed and most of them seem to be empty!) or perhaps you could add them all into one array of serialised options (which seems to be the norm now).At the very least these options should be re-added so that they are set to
$autoload = 'no'
because they are not being used and shouldn’t be loaded on every request.Thank you,
Oliver
- The topic ‘Large Number of Autoloaded Options Set’ is closed to new replies.