In particular in table wp_options. After almost 2 years of blog production it seems increased a lot, and I don't know how many crap is in there.
Do you know a plugin that works with Wordpress 3.0 or safe query to run to search orphan keys/rows?
|
|
|
There is no query that will be 100% certain to delete everything unused and not delete those things because any theme or plugin can add options to the You can put the following code temporarily into your theme's
With this you'll probably be able to identify options that are associated with long gone plugins, former themes and even options of your own you added early on but no longer use. Export them all to a backup (just in case) and then delete the ones you are comfortable deleting. Once you are done you can remove the Although this is still not perfect it's much better than nothing. Hope it helps? |
|||||||
|
|
The plugin Clean Options has worked well for me. The author's description of the plugin seems to fit what you need: "Finds orphaned options and allows for their removal from the wp_options table." I haven't tried WP-Optimize yet personally, but that one looks promising too. And it says it supports WP 2.7 (whereas Clean Options only mentions definite support for WP 2.3), nice! |
|||
|
|
|
This won't necessarily remove issues with |
|||
|
|
|
I run both Clean Options and WP_Optimize on my site, and the combo does a terrific job of keeping the database in great shape. |
|||
|
|