From 80d532a9423dec4aecaabaf1dc78fd23b8af78f2 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 6 Oct 2020 22:02:20 +0100 Subject: [PATCH] Implement key parameter on cache tag (#2589) --- src/Tags/Cache.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tags/Cache.php b/src/Tags/Cache.php index f07131c647..a487ce115a 100644 --- a/src/Tags/Cache.php +++ b/src/Tags/Cache.php @@ -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(),