# Inventory Large Autoloaded WordPress Options Before Cleanup

https://ferkesh.net/zh/knowledgebase/article/wordpress-autoload-option-ownership-inventory

Large autoloaded options can increase the work done while WordPress starts a request. Identify the biggest contributors and their owners before considering configuration changes or cleanup.

![Workflow. Name and byte count. Attribute the option. Check current use. Test a reversible change.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-14a.svg#wordpress-autoload-option-ownership-inventory)

## Capture names and byte sizes without values

On an approved staging copy, confirm the site and table prefix. Ask a developer to inspect the options returned by wp_load_alloptions or use a read-only database inventory based on the installed core version. Current core recognizes several autoload flag values. Filtering solely for autoload='yes' can miss eligible rows. Record names, sizes and totals without copying option values, which can contain configuration secrets.

## Determine ownership

For each large option, look for the name in installed plugin or theme documentation and code. Prefixes are directional evidence. Confirm the read and write path, whether the option is used by a currently active feature and what regenerates it. Mark unknown owners as such and keep those entries out of remediation.

## Define one safe change and baseline

Compare the total against one representative staging route and note whether a persistent object cache is active. Prefer the owner's supported setting or upgrade path. Rehearse one reversible adjustment with an isolated backup and UI acceptance checks. Confirm active features, scheduled jobs and admin screens still load after the change.

## Expected result

The inventory records which large options have clear owners and which need investigation. Use the broad database-cleanup checklist only after the option-specific decision is documented.

## Related guides

- [How to Plan a Safe WordPress Database Cleanup](https://ferkesh.net/knowledgebase/article/wordpress-safe-database-cleanup)
- [Confirm the WordPress Site Before Running WP-CLI](https://ferkesh.net/knowledgebase/article/wp-cli-confirm-site-before-command)

## Official references

- [WordPress autoload options cache](https://developer.wordpress.org/reference/functions/wp_load_alloptions/)
- [Current WordPress autoload flags](https://developer.wordpress.org/reference/functions/wp_autoload_values_to_autoload/)

Ferkesh Hosting. Last reviewed November 27, 2026.
