Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
steinkel committed Feb 25, 2022
1 parent e744161 commit 9789ed4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ After deprecation of the cache option in RoutingMiddleware, the feature is extra
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_'))
// ...
```

Requirements
------------

Expand Down

0 comments on commit 9789ed4

Please sign in to comment.