Commit 02e4a9f0 authored by cuiweifeng's avatar cuiweifeng

update : flush delete

parent 44ddb35f
......@@ -175,7 +175,7 @@ abstract class MysqlBase
{
if(PHP_SAPI == 'cli'){
// cli模式下,不走单例,gone away
$flush = true;
//$flush = true;
}
if (!isset(self::$dbConnect[static::CONFIG_INDEX.':'.$type]) || $flush) {
self::$dbConnect[static::CONFIG_INDEX.':'.$type] = new Medoo(self::getDbConf($type));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment