Ensure a split per environment

This commit is contained in:
Sébastien Morel 2020-06-11 12:22:59 -07:00 committed by Morel Sébastien
parent 4b22f97926
commit 06b793f59e
No known key found for this signature in database
GPG Key ID: FFF7C4EB6FEDB154

View File

@ -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();
}
/**