Making SchemaShell disable the cache when reading table information for schema generation. Fixes #1490

This commit is contained in:
mark_story 2011-01-29 09:24:28 -05:00
parent bbf6aedd9c
commit b30f40582e

View file

@ -153,8 +153,13 @@ class SchemaShell extends Shell {
}
}
$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);