Skip to content

Commit

Permalink
Ensure cache directory exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Mar 30, 2024
1 parent b0232a4 commit 4d25561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Support/DomainCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public static function set($key, $value)
{
$cacheDirectory = config('ddd.cache_directory', 'bootstrap/cache/ddd');

File::ensureDirectoryExists(base_path($cacheDirectory));

$cacheFilePath = base_path("{$cacheDirectory}/ddd-{$key}.php");

file_put_contents(
Expand Down

0 comments on commit 4d25561

Please sign in to comment.