Created
March 24, 2021 23:39
-
-
Save DeveloperWil/4009e3eb2b37b7ce022189364fd83c9c to your computer and use it in GitHub Desktop.
WordPress: View Database Autoloaded Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'autoloaded data in KiB' as name, ROUND(SUM(LENGTH(option_value))/ 1024) as value FROM wp_options WHERE autoload='yes' | |
UNION | |
SELECT 'autoloaded data count', count(*) FROM wp_options WHERE autoload='yes' | |
UNION | |
(SELECT option_name, length(option_value) FROM wp_options WHERE autoload='yes' ORDER BY length(option_value) DESC LIMIT 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment