andersao / andersao/l5-repository

Caching behaviour

Aberta
#419 2 comentários 1 reação 1 responsável Atribuída a @andersao Ver no GitHub
enhancement
Linguagem predominante
PHP
Estrelas
4.2k
Forks
880
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi,

I'm working on integrating this packing into my project. My main reason for wanting to use the repository pattern is to benefit from a caching layer.

I'm somewhat confused by the caching implementation since it only seems to cache a model per page. I've done some investigation and I can see that the full URL of the page is included in the cache key (CacheableRepository@getCacheKey). What's the reason behind this? I was expecting to be able to cache a model once and then pull it from the cache on subsequent requests regardless of page.

Cheers,
Ben

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.