```scala
case (path, CachedValue(Some(rec), _, true)) => {
```

(But I'm not 100% it works)