Skip to content

Commit

Permalink
Merge pull request #9 from JulienTant/patch-1
Browse files Browse the repository at this point in the history
Cache decorator was not caching individual blocks
  • Loading branch information
nWidart committed Jan 5, 2016
2 parents acd2501 + 0a5477e commit 1cb2625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Repositories/Cache/CacheBlockDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function get($name)
{
return $this->cache
->tags($this->entityName, 'global')
->remember("{$this->locale}.{$this->entityName}.get", $this->cacheTime,
->remember("{$this->locale}.{$this->entityName}.get.{$name}", $this->cacheTime,
function () use ($name) {
return $this->repository->get($name);
}
Expand Down

0 comments on commit 1cb2625

Please sign in to comment.