WP Manifestindependent plugin directory
manifest / performance / cache-nav-menus

Cache Nav Menus

Improves nav menu queries and provides a replacement for core's `wp_nav_menu()` that make nav menus more performant.

by Automattic · github.com/automattic/cache-nav-menus · website

21stars
7forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/automattic/cache-nav-menus/archive/refs/heads/master.zip

From the readme

Cache Nav Menus Improves nav menu queries and provides a replacement for core's wpnavmenu() that make nav menus more performant. This plugin improves the performance of navigation menus within WordPress via two methods. First, it intercepts the nav menu queries and ensures they are cached by WPQuery. Secondly, it provides a replacement for wpnavmenu() that wraps the core function, caching the output efficiently to reduce the number of queries performed on a site. Installation Install as with any other plugin for an immediate benefit. To get the full benefit, replace occurences of wpnavmenu() in any custom code with wpcomvipcachednavmenu().

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v1.0Feb 25, 2025