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(10mo ago)5270.7k↑12.8%1MITPHPPHP &gt;=8.1

Since Feb 25Pushed 10mo 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 1mo 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 93% of packages

Maintenance53

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community12

Small or concentrated contributor base

Maturity61

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

329d 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

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2512.2M6](/packages/beste-in-memory-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33113.0k](/packages/anahkiasen-flatten)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23517.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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