From a7beb3d1f8094af076076af1a0d60ae478a59c32 Mon Sep 17 00:00:00 2001 From: chillbram Date: Fri, 19 Apr 2024 18:27:12 +0200 Subject: [PATCH] Fix breaking change --- src/MarkdownRenderer.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/MarkdownRenderer.php b/src/MarkdownRenderer.php index 6de11de..8ba2936 100644 --- a/src/MarkdownRenderer.php +++ b/src/MarkdownRenderer.php @@ -129,10 +129,12 @@ public function toHtml(string $markdown): string $cacheKey = $this->getCacheKey($markdown); - if($this->cacheDuration === null) { - return cache()->rememberForever($cacheKey, function () use ($markdown) { - return $this->convertMarkdownToHtml($markdown); - }); + if ($this->cacheDuration === null) { + return cache() + ->store($this->cacheStoreName) + ->rememberForever($cacheKey, function () use ($markdown) { + return $this->convertMarkdownToHtml($markdown); + }); } return cache()