Skip to content

Commit 5119b63

Browse files
committed
fix: update internal cache storage paths
1 parent 2714fd4 commit 5119b63

File tree

8 files changed

+7
-12
lines changed

8 files changed

+7
-12
lines changed

packages/cache/src/Config/FilesystemCacheConfig.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Tempest\Cache\Config;
44

5-
use Psr\Cache\CacheItemPoolInterface;
65
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
76
use UnitEnum;
87

@@ -34,7 +33,7 @@ public function createAdapter(): FilesystemAdapter
3433
{
3534
return new FilesystemAdapter(
3635
namespace: $this->namespace ?? '',
37-
directory: $this->directory ?? internal_storage_path('/cache'),
36+
directory: $this->directory ?? internal_storage_path('cache/project'),
3837
);
3938
}
4039
}

packages/cache/src/Config/PhpCacheConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function createAdapter(): PhpFilesAdapter
3434
{
3535
return new PhpFilesAdapter(
3636
namespace: $this->namespace ?? '',
37-
directory: $this->directory ?? internal_storage_path('/cache'),
37+
directory: $this->directory ?? internal_storage_path('cache/project'),
3838
);
3939
}
4040
}

packages/cache/src/cache.config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
use function Tempest\internal_storage_path;
66

77
return new FilesystemCacheConfig(
8-
directory: internal_storage_path('/cache/project'),
8+
directory: internal_storage_path('cache/project'),
99
);

packages/core/src/ConfigCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(
1919
private ?CacheItemPoolInterface $pool = null,
2020
) {
2121
$this->pool ??= new FilesystemAdapter(
22-
directory: internal_storage_path('/cache/config'),
22+
directory: internal_storage_path('cache/config'),
2323
);
2424
}
2525

packages/core/src/DiscoveryCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
private ?CacheItemPoolInterface $pool = null,
2929
) {
3030
$this->pool = $pool ?? new PhpFilesAdapter(
31-
directory: internal_storage_path('/cache/discovery'),
31+
directory: internal_storage_path('cache/discovery'),
3232
);
3333
}
3434

packages/view/src/IconCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(
1919
private ?CacheItemPoolInterface $pool = null,
2020
) {
2121
$this->pool ??= new FilesystemAdapter(
22-
directory: internal_storage_path('/cache/icons'),
22+
directory: internal_storage_path('cache/icons'),
2323
);
2424
}
2525

packages/view/src/ViewCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __construct(
1616
private ?ViewCachePool $pool = null,
1717
) {
1818
$this->pool ??= new ViewCachePool(
19-
directory: internal_storage_path('/cache/views'),
19+
directory: internal_storage_path('cache/views'),
2020
);
2121
}
2222

packages/view/src/ViewCacheInitializer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ public function initialize(Container $container): ViewCache
2020
),
2121
);
2222

23-
if (PHP_OS_FAMILY === 'Windows') {
24-
dump($viewCache, env('VIEW_CACHE'), env('INTERNAL_CACHES'));
25-
}
26-
2723
return $viewCache;
2824
}
2925

0 commit comments

Comments
 (0)