mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-14 04:05:35 +08:00
update to build 404
fix ./zhamao command fix warning when first time starting framework
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user