Created
July 5, 2019 03:56
-
-
Save thetwopct/a1fa25ed76578cf3f129b386cb4e0e09 to your computer and use it in GitHub Desktop.
Checking autoloaded data in WordPress MySQL
This file contains hidden or 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
# Run this in SQL query of PHPmyAdmin | |
# Show the size of all the autoloaded data - this is loaded on *every* page of your site | |
SELECT SUM(LENGTH(option_value)) as autoload_size FROM wp_options WHERE autoload='yes'; | |
# Show what is loading in autoload | |
SELECT LENGTH(option_value),option_name FROM wp_options WHERE autoload='yes' ORDER BY length(option_value) DESC LIMIT 20; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment