autoload-options-size
check should include autoloaded transients
#150
Labels
autoload-options-size
check should include autoloaded transients
#150
Bug Report
Describe the current, buggy behavior
wp doctor check autoload-options-size
- 650 kBSELECT 'Autoload kiB' as name, ROUND(SUM(LENGTH(option_value)) / 1024) as value FROM wp_options WHERE autoload='yes'
- 2.4 MBDifference is in counting
_transient_*
options.https://codex.wordpress.org/Function_Reference/set_transient#Notes points out "NB: transients that never expire are autoloaded, whereas transients with an expiration time are not autoloaded. Consider this when adding transients that may not be needed on every page, and thus do not need to be autoloaded, impacting page performance."
Describe what you would expect as the correct outcome
wp doctor check autoload-options-size
should count unexpirable transients.Let us know what environment you are running this on
Reading https://github.com/wp-cli/doctor-command/pull/15/files by @danielbachhuber I'm now thinking this may be an issue for
wp option
command instead. Your thoughts?The text was updated successfully, but these errors were encountered: