Skip to content

Provides a cached version of the RoutingMiddleware to improve the load time of routes

License

Notifications You must be signed in to change notification settings

arusinowski/cakephp-cached-routing

 
 

Repository files navigation

CakeDC Cached Routing

After deprecation of the cache option in RoutingMiddleware, 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
    // ...
    ->add(new \CakeDC\CachedRouting\Routing\Middleware\CachedRoutingMiddleware($this, '_cake_routes_'))
    // ...

Requirements

  • CakePHP 4.3+
  • PHP 7.4+

Support

For bugs and feature requests, please use the issues section of this repository.

Commercial support is also available, contact us for more information.

Contributing

This repository follows the CakeDC Plugin Standard. If you'd like to contribute new features, enhancements or bug fixes to the plugin, please read our Contribution Guidelines for detailed instructions.

License

Copyright 2022 Cake Development Corporation (CakeDC). All rights reserved.

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

About

Provides a cached version of the RoutingMiddleware to improve the load time of routes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%