Make config caching less aggressive

This commit is contained in:
Anand Capur 2017-10-07 14:45:31 -07:00
parent acdc78e89d
commit b08d6a4b9d
No known key found for this signature in database
GPG key ID: D2CF19AAD5272522
5 changed files with 2 additions and 14 deletions

View file

@ -114,7 +114,6 @@ class AppSettingsCommand extends Command
$this->checkForRedis();
$this->writeToEnvironment($this->variables);
$this->command->call('config:cache');
$this->info($this->command->output());
}

View file

@ -122,7 +122,6 @@ class DatabaseSettingsCommand extends Command
$this->writeToEnvironment($this->variables);
$this->console->call('config:cache');
$this->info($this->console->output());
return 0;

View file

@ -92,7 +92,6 @@ class EmailSettingsCommand extends Command
$this->writeToEnvironment($this->variables);
$this->line('Updating stored environment configuration file.');
$this->call('config:cache');
$this->line('');
}

View file

@ -68,21 +68,13 @@
}
},
"scripts": {
"pre-install-cmd": [
"rm -f bootstrap/cache/services.php bootstrap/cache/compiled.php"
],
"pre-update-cmd": [
"rm -f bootstrap/cache/services.php bootstrap/cache/compiled.php"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize",
"php artisan config:cache"
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize",
"php artisan config:cache"
"php artisan optimize"
]
},
"prefer-stable": true,

View file

@ -276,6 +276,5 @@ class EmailSettingsCommandTest extends CommandTestCase
{
$this->config->shouldReceive('get')->withAnyArgs()->zeroOrMoreTimes()->andReturnNull();
$this->command->shouldReceive('writeToEnvironment')->with($data)->once()->andReturnNull();
$this->command->shouldReceive('call')->with('config:cache')->once()->andReturnNull();
}
}