Make config caching less aggressive
This commit is contained in:
parent
acdc78e89d
commit
b08d6a4b9d
5 changed files with 2 additions and 14 deletions
|
@ -114,7 +114,6 @@ class AppSettingsCommand extends Command
|
||||||
$this->checkForRedis();
|
$this->checkForRedis();
|
||||||
$this->writeToEnvironment($this->variables);
|
$this->writeToEnvironment($this->variables);
|
||||||
|
|
||||||
$this->command->call('config:cache');
|
|
||||||
$this->info($this->command->output());
|
$this->info($this->command->output());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,6 @@ class DatabaseSettingsCommand extends Command
|
||||||
|
|
||||||
$this->writeToEnvironment($this->variables);
|
$this->writeToEnvironment($this->variables);
|
||||||
|
|
||||||
$this->console->call('config:cache');
|
|
||||||
$this->info($this->console->output());
|
$this->info($this->console->output());
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -92,7 +92,6 @@ class EmailSettingsCommand extends Command
|
||||||
$this->writeToEnvironment($this->variables);
|
$this->writeToEnvironment($this->variables);
|
||||||
|
|
||||||
$this->line('Updating stored environment configuration file.');
|
$this->line('Updating stored environment configuration file.');
|
||||||
$this->call('config:cache');
|
|
||||||
$this->line('');
|
$this->line('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,21 +68,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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": [
|
"post-install-cmd": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postInstall",
|
"Illuminate\\Foundation\\ComposerScripts::postInstall",
|
||||||
"php artisan optimize",
|
"php artisan optimize"
|
||||||
"php artisan config:cache"
|
|
||||||
],
|
],
|
||||||
"post-update-cmd": [
|
"post-update-cmd": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
|
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
|
||||||
"php artisan optimize",
|
"php artisan optimize"
|
||||||
"php artisan config:cache"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
|
|
|
@ -276,6 +276,5 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||||
{
|
{
|
||||||
$this->config->shouldReceive('get')->withAnyArgs()->zeroOrMoreTimes()->andReturnNull();
|
$this->config->shouldReceive('get')->withAnyArgs()->zeroOrMoreTimes()->andReturnNull();
|
||||||
$this->command->shouldReceive('writeToEnvironment')->with($data)->once()->andReturnNull();
|
$this->command->shouldReceive('writeToEnvironment')->with($data)->once()->andReturnNull();
|
||||||
$this->command->shouldReceive('call')->with('config:cache')->once()->andReturnNull();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue