andersao / andersao/l5-repository
Serialize relations when caching
Aberta
bug
- Linguagem predominante
- PHP
- Estrelas
- 4.2k
- Forks
- 880
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Shouldn't serialization of the cache key include relations if they exist? If running various Jobs in the background, it appears the same key is used:
```
$user = $this->user->with(['groups.projects'])->find(1);
```
key = App\Repositories\UserRepository@find-fdc17b908030a12f6cbc123416fb82e5
```
$user = $this->user->with(['profile'])->find(1);
```
key = App\Repositories\UserRepository@find-fdc17b908030a12f6cbc123416fb82e5
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.