Skip to content

Commit

Permalink
Implement key parameter on cache tag (#2589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan McClean authored Oct 6, 2020
1 parent ad1c9b4 commit 80d532a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Tags/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ private function isEnabled()

private function getCacheKey()
{
if ($this->params->has('key')) {
return $this->params->get('key');
}

$hash = [
'content' => $this->content,
'params' => $this->params->all(),
Expand Down

0 comments on commit 80d532a

Please sign in to comment.