Fixing cache key

parent 90b012e0
...@@ -73,7 +73,7 @@ abstract class BaseCacheDecorator implements BaseRepository ...@@ -73,7 +73,7 @@ abstract class BaseCacheDecorator implements BaseRepository
{ {
return $this->cache return $this->cache
->tags([$this->entityName, 'global']) ->tags([$this->entityName, 'global'])
->remember("{$this->locale}.{$this->entityName}.all", $this->cacheTime, ->remember("{$this->locale}.{$this->entityName}.allWithBuilder", $this->cacheTime,
function () { function () {
return $this->repository->allWithBuilder(); return $this->repository->allWithBuilder();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment