From b30f40582e3338ebe931ff47c308126bf81ca06c Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 29 Jan 2011 09:24:28 -0500 Subject: [PATCH] Making SchemaShell disable the cache when reading table information for schema generation. Fixes #1490 --- cake/console/libs/schema.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cake/console/libs/schema.php b/cake/console/libs/schema.php index 889f85453..840e3c61a 100644 --- a/cake/console/libs/schema.php +++ b/cake/console/libs/schema.php @@ -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);