Skip to content
Permalink
Browse files

Clear model cache after schema update.

  • Loading branch information...
garas committed Dec 17, 2015
1 parent 4faf31e commit c6fdcea3aac0ebc5207292683d51a0db18ce1c3f
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Console/Command/SchemaShell.php
@@ -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.'));

0 comments on commit c6fdcea

Please sign in to comment.
You can’t perform that action at this time.