PHPackages                             cakedc/cakephp-cached-routing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. cakedc/cakephp-cached-routing

ActiveCakephp-plugin[Caching](/categories/caching)

cakedc/cakephp-cached-routing
=============================

Cached RoutingMiddleware for CakePHP 5.0+

2.0.1(1y ago)5322.8k↓37.1%1MITPHPPHP &gt;=8.1

Since Feb 25Pushed 1y ago4 watchersCompare

[ Source](https://github.com/CakeDC/cakephp-cached-routing)[ Packagist](https://packagist.org/packages/cakedc/cakephp-cached-routing)[ Docs](https://github.com/CakeDC/cakephp-cached-routing)[ RSS](/packages/cakedc-cakephp-cached-routing/feed)WikiDiscussions 2.next-cake5 Synced 2d ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

CakeDC Cached Routing
=====================

[](#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
------------

[](#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_'))
    // ...
```

- Add the `_cake_routes_` cache settings in your `config/app_local.php`.

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

[](#requirements)

- CakePHP 5.0+
- PHP 8.1+

Support
-------

[](#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
------------

[](#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
-------

[](#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.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance49

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 59.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~404 days

Total

4

Last Release

374d ago

Major Versions

1.0.1 → 2.0.02023-09-30

PHP version history (2 changes)1.0.0PHP &gt;=7.4

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/204531?v=4)[Cake Development Corporation](/maintainers/CakeDC)[@CakeDC](https://github.com/CakeDC)

---

Top Contributors

[![steinkel](https://avatars.githubusercontent.com/u/151761?v=4)](https://github.com/steinkel "steinkel (13 commits)")[![arusinowski](https://avatars.githubusercontent.com/u/1587389?v=4)](https://github.com/arusinowski "arusinowski (9 commits)")

---

Tags

cakephproutingcache

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cakedc-cakephp-cached-routing/health.svg)

```
[![Health](https://phpackages.com/badges/cakedc-cakephp-cached-routing/health.svg)](https://phpackages.com/packages/cakedc-cakephp-cached-routing)
```

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M171](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M202](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M44](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
