update cache management (cache:clear is not a solution)
This commit is contained in:
parent
aa34464f71
commit
2de1c8ddaa
4 changed files with 21 additions and 13 deletions
|
|
@ -40,12 +40,21 @@ class SymfonyCacheManager
|
|||
{
|
||||
$application = new Application($this->kernel);
|
||||
$application->setAutoExit(false);
|
||||
$output = new BufferedOutput();
|
||||
|
||||
$input = new ArrayInput([
|
||||
'command' => 'cache:clear',
|
||||
'-e' => $this->kernel->getEnvironment(),
|
||||
'--no-warmup' => null,
|
||||
]);
|
||||
|
||||
$application->run($input, $output);
|
||||
|
||||
$input = new ArrayInput([
|
||||
'command' => 'cache:warmup',
|
||||
'-e' => $this->kernel->getEnvironment(),
|
||||
]);
|
||||
|
||||
$output = new BufferedOutput();
|
||||
$application->run($input, $output);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue