Merge pull request #7865 from garas/model-cache-cleanup-after-schema-update

Clear model cache after schema update.
This commit is contained in:
Mark Story 2015-12-17 23:18:45 -05:00
commit 0668cc6ff1

View file

@ -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.'));