Skip to content

Commit

Permalink
Clear model cache after schema update.
Browse files Browse the repository at this point in the history
  • Loading branch information
garas committed Dec 17, 2015
1 parent 4faf31e commit c6fdcea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Console/Command/SchemaShell.php
Expand Up @@ -403,6 +403,9 @@ protected function _update(&$Schema, $table = null) {
$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.'));
Expand Down

0 comments on commit c6fdcea

Please sign in to comment.