开发者 | ryanhellyer |
---|---|
更新时间 | 2015年12月2日 18:39 |
捐献地址: | 去捐款 |
PHP版本: | 4.1 及以上 |
Nope. But luckily for you, Kaspars Dambis has created the Widget Output Cache plugin which does that for you.
They are set to cache for one hour by default. You can change this by creating an extension plugin which extends the main plugin class and modifies the cache_time variable.
Because it is not a good idea to cache a fresh menu for each page on some websites. If you don't have many pages, then this is a perfectly acceptable way to handle menu caching. But if you have a large site with many pages, then there may be too many menus to efficiently cache.
There isn't one. Just activate it and it should start working immediately. There is a cache purge button on the plugins page, but this should not be needed in normal usage.
Maybe. Those plugins do full static page caching. Caching your menus is only useful if your visitors are able to bypass the full page cache (this usually occurs when people comment or are logged in).
It does work. If you think it is not working for some reason, please let me know why. Just because you can't see any changes on your site, or it doesn't "feel" faster does not mean that it is not working. In fact if you use the plugin incorrectly, your site could actually load more slowly than before. Caching is a complex thing and it can backfire on you if you don't do it right.
Not quite. Object caching plugins are able to massively reduce the load created by WordPress menus, but not entirely. This plugin takes it a step further and caches the entire menu. Using the menu cache plugin in conjunction with an object caching plugin makes complete sense and is highly recommended for maximum performance.
Probably, but I only actively support the latest version of WordPress. Support for older versions is purely by accident.
No, I'm too busy. Having said that, if you are willing to pay me a small fortune then I could probably be persuaded. I'm also open to suggestions for improvements, so feel free to send me ideas and if you are lucky, it may be added for free :)