update to build 404

fix ./zhamao command
fix warning when first time starting framework
This commit is contained in:
jerry
2021-03-29 15:48:47 +08:00
parent dfddaaea94
commit d72b41a902
3 changed files with 8 additions and 4 deletions

View File

@@ -256,7 +256,11 @@ class LightCache
if (self::$kv_table === null) return;
if (!empty(self::$config["persistence_path"])) {
$r = json_decode(file_get_contents(self::$config["persistence_path"]), true);
if (file_exists(self::$config["persistence_path"])) {
$r = json_decode(file_get_contents(self::$config["persistence_path"]), true);
} else {
$r = [];
}
if ($r === null) $r = [];
foreach ($r as $k => $v) {
Console::verbose("Saving " . $k);