Last active
March 16, 2021 13:26
-
-
Save IlanVivanco/84aed8c23ef7b0a49e5357514511dbf3 to your computer and use it in GitHub Desktop.
Show WP 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' as name, | |
ROUND(SUM(LENGTH(option_value))) 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 | |
250 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment