Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nasyrov/wordpress-menu-cache

WordPress mu-plugin for a faster wp_nav_menu.
https://github.com/nasyrov/wordpress-menu-cache

cache menu php wordpress wordpress-muplugin

Last synced: 6 days ago
JSON representation

WordPress mu-plugin for a faster wp_nav_menu.

Awesome Lists containing this project

README

        

# WordPress Menu Cache

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Total Downloads][ico-downloads]][link-downloads]

WordPress mu-plugin for a faster `wp_nav_menu`.

*Please read carefully the code and understand how it works before you roll it on production. It uses [transient API](https://codex.wordpress.org/Transients_API) and generates the cache key for every page so a menu can keep track of an active state. Make sure you use Memcached or Redis as an object cache otherwise it could bloat your `wp_options` table.*

## Requirements

Make sure all dependencies have been installed before moving on:

* [PHP](http://php.net/manual/en/install.php) >= 5.6
* [Composer](https://getcomposer.org/download/)

## Install

Pull the package via Composer:

``` bash
$ composer require nasyrov/wordpress-menu-cache
```

## Testing

``` bash
$ composer lint
```

## Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

## Credits

- [Evgenii Nasyrov][link-author]
- [All Contributors][link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/nasyrov/wordpress-menu-cache.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/nasyrov/wordpress-menu-cache.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/nasyrov/wordpress-menu-cache
[link-downloads]: https://packagist.org/packages/nasyrov/wordpress-menu-cache
[link-author]: https://github.com/nasyrov
[link-contributors]: ../../contributors