调试模式下不读取字段缓存文件

This commit is contained in:
thinkphp
2017-12-05 15:05:43 +08:00
parent 54b270fd29
commit 576273cdf1

View File

@@ -1744,7 +1744,7 @@ class Query
$schema = $guid;
}
// 读取缓存
if (is_file(RUNTIME_PATH . 'schema/' . $schema . '.php')) {
if (!App::$debug && is_file(RUNTIME_PATH . 'schema/' . $schema . '.php')) {
$info = include RUNTIME_PATH . 'schema/' . $schema . '.php';
} else {
$info = $this->connection->getFields($guid);