Speed Up – Menu Cache
Before you install: this plugin only works with classic themes. It caches the output of wp_nav_menu() . Block themes do not use that function: they render navigation with the core/navigation block, which this plugin never sees. On a block theme the plugin is active and does nothing at all. Since 202
Before you install: this plugin only works with classic themes.
It caches the output of wp_nav_menu() . Block themes do not use that function: they render navigation with the core/navigation block, which this plugin never sees. On a block theme the plugin is active and does nothing at all. Since 2022 every default WordPress theme is a block theme, so check which kind yours is first.
For each menu, wordpress reads data from the database and elaborated the results. This process, repeated at each page view, is a waste time and resource.
This plugin offers a caching solution that reduces this effects on performance.
The only downside is that the menu will not show the active item with a different style. This plugin cache one version of the menu for all pages.
Configurations are not required! You just have to install it and after the plugin does it all, none further action it’s required.
This plugin is very light: only 5 kb.
Caveats
If you are using user-specific dynamic menu items, this plugin will break that functionality, as it will cache the state of the first page load and any changes will not be seen. There is no per-user cache.
- 01Upload the complete speed-up-menu folder to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
Frequently asked questions.
How can i deactivate cache on some menu?
Simply add a string ‘no-cache’ in the menu (eg. in a css class).