Ensure a split per environment
This commit is contained in:
parent
4b22f97926
commit
06b793f59e
@ -68,7 +68,11 @@ trait MicroKernelTrait
|
||||
*/
|
||||
public function getCacheDir(): string
|
||||
{
|
||||
return $_SERVER['APP_CACHE_DIR'] ?? parent::getCacheDir();
|
||||
if (isset($_SERVER['APP_CACHE_DIR'])) {
|
||||
return $_SERVER['APP_CACHE_DIR'].'/'.$this->environment;
|
||||
}
|
||||
|
||||
return parent::getCacheDir();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user