# \[Solved\]Cakephp 3.7.1 route cache error

**URL:** <https://discourse.cakephp.org/t/solved-cakephp-3-7-1-route-cache-error/5481>\
**Category:** Uncategorized\
**Created:** [January 2, 2019, 8:37pm UTC](https://discourse.cakephp.org/t/solved-cakephp-3-7-1-route-cache-error/5481 "2019-01-02T20:37:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)\
**Post date:** [January 2, 2019, 8:37pm UTC](https://discourse.cakephp.org/t/solved-cakephp-3-7-1-route-cache-error/5481/1 "2019-01-02T20:37:05Z")

</div>

I am getting:  
Error: [InvalidArgumentException] The “_cake\_routes_” cache configuration does not exist.

Have searched but all I saw was:  
[https://github.com/cakephp/debug\_kit/issues/627](https://github.com/cakephp/debug_kit/issues/627) outdated

I remembered an earlier version I changed:

```auto
add(new RoutingMiddleware($this, '_cake_routes_'));

```

to

```auto
 ->add(new RoutingMiddleware($this));

```

It works now, I still don’t know why top line does not work.
