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.

★ 21stars
v1.0latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/automattic/cache-nav-menus/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Improves nav menu queries and provides a replacement for core's wp_nav_menu() 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 WP_Query.

Secondly, it provides a replacement for wp_nav_menu() 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 wp_nav_menu() in any custom code with wpcom_vip_cached_nav_menu().

Releases

1 release.

Tag
Published
v1.0 latest
Feb 25, 2025 1 year ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.