Skip to content

Commit 563ef92

Browse files
committed
Ensure a split per environment
1 parent 29cbb21 commit 563ef92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Kernel/MicroKernelTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ trait MicroKernelTrait
6868
*/
6969
public function getCacheDir(): string
7070
{
71-
return $_SERVER['APP_CACHE_DIR'] ?? parent::getCacheDir();
71+
if (isset($_SERVER['APP_CACHE_DIR'])) {
72+
return $_SERVER['APP_CACHE_DIR'].'/'.$this->environment;
73+
}
74+
75+
return parent::getCacheDir();
7276
}
7377

7478
/**

0 commit comments

Comments
 (0)