Skip to content

Commit 80d532a

Browse files
author
Duncan McClean
authored
Implement key parameter on cache tag (#2589)
1 parent ad1c9b4 commit 80d532a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tags/Cache.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ private function isEnabled()
3434

3535
private function getCacheKey()
3636
{
37+
if ($this->params->has('key')) {
38+
return $this->params->get('key');
39+
}
40+
3741
$hash = [
3842
'content' => $this->content,
3943
'params' => $this->params->all(),

0 commit comments

Comments
 (0)