• 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() or add_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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support oluisrael

    (@oluisrael)

    Hi @domainsupport, I’m sorry for missing this and not getting back to you sooner. The only technical reason and perhaps our plugin autoloads these options, is when those input fields are in use by any or all products, so I want to assume this is the case.

    But if you’re not using these options, you can start by disabling the “Load Timepicker Script” and “Load Datepicker Script” options. You can find both in WooCommerce >> Settings >> Product Input Fields >> General.

    In the meantime, we will investigate this further and make necessary adjustments and apply patches where we should.

    Thank you once again for bringing this to our attention.

    Thread Starter Oliver Campion

    (@domainsupport)

    Thanks for the reply.

    Options are autoloaded by default when set unless specifically instructed not to when they are first saved.

    It looks like your plugin saves options even when they are not being used and saves them without setting $autoload to ‘no’.

    $autoload should only be set to ‘yes’ (or omitted) if an option is used on all or most page requests.

    I would suggest that the options are not saved (and deleted if they already exist) if they are not being utilised?

    Many thanks for looking into this.

    Oliver

    Plugin Support oluisrael

    (@oluisrael)

    Thank you for your response, @domainsupport. We’re already investigating this and will fix it soon. We will also roll out the patch as part of the next update.

    Thank you once again for following up on this.

    Thread Starter Oliver Campion

    (@domainsupport)

    Thank you. Perhaps the options could be amalgamated into one serialised array option?

    I look forward to the update.

    Thank you for your consideration.

    Oliver

    Plugin Support oluisrael

    (@oluisrael)

    @domainsupport we will consider all options in order to get a way to implement this such that it doesn’t affect anything. Thanks once again for your follow up on this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Large Number of Autoloaded Options Set’ is closed to new replies.