Delete Unused Options Data
-
I needed to manually fix a corrupted WordPress database last week. Some of the fixes required,
1) deletion of unused data rows in the wp_options table, and
2) conversion of tables to InnoDB.While deleting rows from the wp_options table I came upon a row of data for Jetpack that had been made redundant a year or two ago after Jetpack migrated the data to another table. This made me wonder how many other data in wp_options can be deleted even though the plugin that added the table is still active in a site.
That wonder in mind,
a) could WP Optimize suggest wp_options table edits for popular plugins that have migrated data from the wp_options table to elsewhere in the database;
b) further, could WP Optimize list all plugin and theme data in wp_options so that (super) admins might delete them; and
c) could WP Optimize move those wp_options data to a backup table in the database in case an admin wishes to restore the data to wp_options?I imagine this would work similar to the existent table deletion feature found under WP Optimize > Database but with a data row restore option added.
Is this likely to be added to WP Optimize?
Done well, WP Optimize could become a repository resource for plugin and theme developers to log/report data storage changes; and site admins and developers could report observations to WP Optimize too.
As additional suggestions/questions,
1) Will WP Optimize ever include a feature to convert MyISAM tables to InnoDB?
2) Will WP Optimize ever include an option to add table indexes for tables that lack them?
3) Will an individual table backup/restore option be added to Table Deletion?Lee
- The topic ‘Delete Unused Options Data’ is closed to new replies.