Optimize database tables
wp_db_optimizeRuns OPTIMIZE TABLE on every WordPress table matching the site's prefix to reclaim unused space and defragment them, returning optimized count and table names.
Instructions
Run OPTIMIZE TABLE on every database table whose name starts with this site's table prefix, to reclaim unused space and defragment. Returns optimized (the count) and tables (the names). On large tables it can take a while and, depending on the storage engine, lock them meanwhile; there is no dry run. Requires manage_options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||