mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #7865 from garas/model-cache-cleanup-after-schema-update
Clear model cache after schema update.
This commit is contained in:
commit
0668cc6ff1
1 changed files with 3 additions and 0 deletions
|
@ -403,6 +403,9 @@ class SchemaShell extends AppShell {
|
|||
$this->out();
|
||||
$this->out(__d('cake_console', 'Updating Database...'));
|
||||
$this->_run($contents, 'update', $Schema);
|
||||
|
||||
Configure::write('Cache.disable', false);
|
||||
Cache::clear(false, '_cake_model_');
|
||||
}
|
||||
|
||||
$this->out(__d('cake_console', 'End update.'));
|
||||
|
|
Loading…
Reference in a new issue