miso
3 years ago

Multiple config:cache do not work

Posted 3 years ago by miso

Hi, I do this:

modifyAndSaveDotenvFile();
$this->call('config:cache');

This works fine, the app/bootstrap/cache/config.php is updated.

However when I do this several times, the cached file is not updated.

modifyAndSaveDotenvFile();
$this->call('config:cache');
modifyAndSaveDotenvFile();
$this->call('config:cache');

I do this in my console app and call multiple commands, it is not in one call as in example.

Do you know what can cause this?

Thank you

Please sign in or create an account to participate in this conversation.