Skip to content

Commit

Permalink
includeCached with data (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored Feb 13, 2025
1 parent 803475d commit d13d651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BladeDirectivesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d13d651

Please sign in to comment.