https://github.com/CakeDC/cakephp-cached-routing
Provides a cached version of the RoutingMiddleware to improve the load time of routes
https://github.com/CakeDC/cakephp-cached-routing
Last synced: 7 days ago
JSON representation
Provides a cached version of the RoutingMiddleware to improve the load time of routes
- Host: GitHub
- URL: https://github.com/CakeDC/cakephp-cached-routing
- Owner: CakeDC
- License: other
- Created: 2022-02-25T11:48:07.000Z (about 3 years ago)
- Default Branch: 2.next-cake5
- Last Pushed: 2023-10-19T14:57:22.000Z (over 1 year ago)
- Last Synced: 2024-11-12T05:37:07.887Z (6 months ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 4
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-cakephp - CakeDC/CachedRouting plugin - Provides a cached version of the RoutingMiddleware to improve the load time of routes. (Caching)
README
CakeDC Cached Routing
=====================After deprecation of the cache option in RoutingMiddleware in CakePHP 4.4+ and removal in CakePHP 5.0, the feature is
extracted here in case you still want to use it to speed up your routes loading when your routes do not include
non-serializable contents.This plugin provides a replacement for the RoutingMiddleware to allow caching of the route collection.
Installation
------------* `composer require cakedc/cakephp-cached-routing`
* Replace RoutingMiddleware reference in your `Application::middleware` function to```php
// ...
->add(new \CakeDC\CachedRouting\Routing\Middleware\CachedRoutingMiddleware($this, '_cake_routes_'))
// ...
```
* Add the `_cake_routes_` cache settings in your `config/app_local.php`.Requirements
------------* CakePHP 5.0+
* PHP 8.1+Support
-------For bugs and feature requests, please use the [issues](https://github.com/CakeDC/cakephp-cached-routing/issues) section of this repository.
Commercial support is also available, [contact us](https://www.cakedc.com/contact) for more information.
Contributing
------------This repository follows the [CakeDC Plugin Standard](https://www.cakedc.com/plugin-standard). If you'd like to contribute new features, enhancements or bug fixes to the plugin, please read our [Contribution Guidelines](https://www.cakedc.com/contribution-guidelines) for detailed instructions.
License
-------Copyright 2023 Cake Development Corporation (CakeDC). All rights reserved.
Licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.