Autoloaded Options Health Check: Disabled options reappear in Site Health after external update #1340
Labels
[Plugin] Performance Lab
Issue relates to work in the Performance Lab Plugin only
[Type] Bug
An existing feature is broken
Bug Description
In #1048, support for changing the autoload value for the largest autoloaded options in the Site Health check was added. However, there is a potential bug when the option value is updated through external code, meaning some external code autoloads the option.
Steps to Reproduce
Add filter code to show the site health check.
If you use WP 6.6 version, use the filter:
If you use WP < 6.6 version, use the filter:
update_option( 'option_name', 'value', true );
.Screenshots
Suggested Approach
We should perform an early check in the disabled table to see if any option is autoloaded again, and if so, remove that option from
perflab_aao_disabled_options
so it will not show up again. Additionally, when anyone clicks on "Revert to autoload" for a duplicate option, it shows aFailed to disable autoload.
error.The text was updated successfully, but these errors were encountered: