mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-26 03:19:57 +00:00
Making SchemaShell disable the cache when reading table information for schema generation. Fixes #1490
This commit is contained in:
parent
bbf6aedd9c
commit
b30f40582e
1 changed files with 5 additions and 0 deletions
|
@ -153,9 +153,14 @@ class SchemaShell extends Shell {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$cacheDisable = Configure::read('Cache.disable');
|
||||||
|
Configure::write('Cache.disable', true);
|
||||||
|
|
||||||
$content = $this->Schema->read($options);
|
$content = $this->Schema->read($options);
|
||||||
$content['file'] = $this->params['file'];
|
$content['file'] = $this->params['file'];
|
||||||
|
|
||||||
|
Configure::write('Cache.disable', $cacheDisable);
|
||||||
|
|
||||||
if ($snapshot === true) {
|
if ($snapshot === true) {
|
||||||
$Folder =& new Folder($this->Schema->path);
|
$Folder =& new Folder($this->Schema->path);
|
||||||
$result = $Folder->read();
|
$result = $Folder->read();
|
||||||
|
|
Loading…
Add table
Reference in a new issue