From d13d6518132ddbb33cee065f7f5c91991b83e3c5 Mon Sep 17 00:00:00 2001 From: Roy Duineveld Date: Thu, 13 Feb 2025 10:41:05 +0100 Subject: [PATCH] includeCached with data (#20) --- src/BladeDirectivesServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BladeDirectivesServiceProvider.php b/src/BladeDirectivesServiceProvider.php index 4a0ca2e..4c5a4d6 100644 --- a/src/BladeDirectivesServiceProvider.php +++ b/src/BladeDirectivesServiceProvider.php @@ -70,7 +70,7 @@ public function register() // That way it's stays dynamic. The Str::slug(url('/')) is used // to support multi sites; a cache per application url. // You could use URL::forceRootUrl(...) for this. - $cacheKey = trim($expression, '\'"'); + $cacheKey = md5(trim($expression, '\'"')); // So it's cached for 5 minutes and refreshed in the background until + 24 hours. // Which never happens but it's required; after that it refreshed directly.