WP Manifestindependent plugin directory
manifest / performance / menu-cache

Inpsyde Menu Cache archived

Easily cache rendered menus using the Transients API.

by Inpsyde GmbH · github.com/inpsyde/menu-cache · website

72stars
11kcomposer installs
5forks

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/inpsyde/menu-cache/archive/refs/heads/master.zip

Also on Packagist as inpsyde/menu-cache:

composer require inpsyde/menu-cache

From the readme

Inpsyde Menu Cache Easily cache rendered menus using the Transients API. Introduction The wpnavmenu() function calls wpmenuitemclassesbycontext(), which again, depending on the context, calls wpgetobjectterms(), which is not cached, multiple times. With lots of taxonomies, terms and menu items, this can lead to a fair amount of (totally redundant) database queries. This plugin lets you cache rendered menus (assuming they don't have dynamic components) for re-use. Installation Install with Composer: Requirements This package requires PHP 5.4 or higher. Usage Once activated, the plugin caches all menus, by default for five minutes. The menus to be cached, as well as the expiration, can be customized by using the appropriate filter. Filters Need to customize anything? Just use the provided filters. Please note: when you use the below class constants for the filters, make sure that the class is actually available. This can be as easy as guarding your customization with if ( classexists( 'Inpsyde\MenuCache\MenuCache' ) ). Inpsyde\MenuCache\MenuCache::FILTEREXPIRATION The Inpsyde\MenuCache\MenuCache::FILTEREXPIRATION filter allows you to define the expiration for all cach

Read the full README on GitHub →

Releases

TagPublished
1.4.2 Dec 10, 2019
v1.4.1 Oct 24, 2017
v1.4.0 Sep 28, 2017
v1.3.0 Jul 11, 2017
v1.2.0 May 29, 2017
v1.1.0 Dec 19, 2016
v1.0.0 Oct 25, 2016
v1.0.0-alpha Oct 24, 2016

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