Skip to content

Commit 2714fd4

Browse files
committed
chore: debug view cache
1 parent 9a29564 commit 2714fd4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/view/src/ViewCacheInitializer.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ final class ViewCacheInitializer implements Initializer
1414
#[Singleton]
1515
public function initialize(Container $container): ViewCache
1616
{
17-
return new ViewCache(
17+
$viewCache = new ViewCache(
1818
enabled: $this->shouldCacheBeEnabled(
1919
$container->get(AppConfig::class)->environment->isProduction(),
2020
),
2121
);
22+
23+
if (PHP_OS_FAMILY === 'Windows') {
24+
dump($viewCache, env('VIEW_CACHE'), env('INTERNAL_CACHES'));
25+
}
26+
27+
return $viewCache;
2228
}
2329

2430
private function shouldCacheBeEnabled(bool $isProduction): bool

tests/Integration/Vite/ViteTagsComponentTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ protected function setUp(): void
2020
parent::setUp();
2121

2222
$this->vite->setRootDirectory(__DIR__ . '/Fixtures/tmp');
23-
24-
if (PHP_OS_FAMILY === 'Windows') {
25-
dump($this->container->get(ViewCache::class));
26-
}
2723
}
2824

2925
public function test_dev_entrypoint(): void

0 commit comments

Comments
 (0)