Skip to content
Permalink
Browse files

Making SchemaShell disable the cache when reading table information f…

…or schema generation. Fixes #1490
  • Loading branch information...
markstory committed Jan 29, 2011
1 parent bbf6aed commit b30f40582e3338ebe931ff47c308126bf81ca06c
Showing with 5 additions and 0 deletions.
  1. +5 −0 cake/console/libs/schema.php
@@ -153,8 +153,13 @@ function generate() {
}
}
$cacheDisable = Configure::read('Cache.disable');
Configure::write('Cache.disable', true);
$content = $this->Schema->read($options);
$content['file'] = $this->params['file'];
Configure::write('Cache.disable', $cacheDisable);
if ($snapshot === true) {
$Folder =& new Folder($this->Schema->path);

0 comments on commit b30f405

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