Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nasyrov/wordpress-menu-cache
- Owner: nasyrov
- License: mit
- Created: 2018-04-04T10:54:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T21:11:12.000Z (over 6 years ago)
- Last Synced: 2024-04-19T03:42:43.349Z (7 months ago)
- Topics: cache, menu, php, wordpress, wordpress-muplugin
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
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