Options Optimizer
开发者 |
Keith Graham
|
更新时间 |
2012年8月30日 21:45 |
捐献地址: |
去捐款 |
PHP版本: |
3.1 及以上 |
WordPress版本: |
3.5 |
版权: |
GPLv2 or later |
版权网址: |
版权信息
|
详情介绍:
The Options Optimizer allows you to change plugin options so that they don't autoload. It also allows you to delete orphan options.
In WordPress, some options are loaded whenever Wordpress loads a page. These are marked as autoload options. This is done to speed up WordPress and prevent the programs from hitting the database every time some plugin needs to look up an option. Automatic loading of options at start-up makes WordPress fast, but it can also use up memory for options that will seldom or never be used.
You can safely switch options so that they don't load automatically. Probably the worst thing that will happen is that the page will paint a little slower because the option is retrieved separately from other options. The best thing that can happen is there is a lower demand on memory because the unused options are not loaded when WordPress starts loading a page.
When plugins are uninstalled they are supposed to clean up their options. Many options do not do any clean-up during uninstall. It is quite possible that you have many orphan options from plugins that you deleted long ago. These are autoloaded on every page, slowing down your pages and eating up memory. These options can be safely marked so that they will not autoload. If you are sure they are not needed you can delete them.
You can change the autoload settings or delete an option on the form below. Be aware that you can break some plugins by deleting their options. I do not show most of the built-in options used by WordPress. The options list should be just plugin options.
It is far safer to change the autoload option value to no than deleting an option. Only delete an option if you are sure that it is from an uninstalled plugin.
In order to see if the change in autoload makes any difference, you can view the source of your blog pages and look for an html comment that shows your current memory usage and the load time for the page. This is added to the footer by this plugin. This is an HTML comment so you will have to view the page source and look for something like:
Options Optimizer:
29 queries in 0.282 seconds.
Memory Usage Current: 13,893,944, Peak: 14,272,364
Deactivate the plugin when not in use.
安装:
- Download the plugin or add plugin directly from the WordPress plugin repository.
- If you download the plugin you then must upload the plugin to your wp-content/plugins directory.
- Activate the plugin.
- The settings page for the plugin will let you change or delete options.
更新日志: