mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
update to 2.2.1 version
fix a compatibility bug
This commit is contained in:
@@ -15,7 +15,7 @@ class WorkerCache
|
|||||||
public static $transfer = [];
|
public static $transfer = [];
|
||||||
|
|
||||||
public static function get($key) {
|
public static function get($key) {
|
||||||
$config = self::$config ?? ZMConfig::get("global", "worker_cache");
|
$config = self::$config ?? ZMConfig::get("global", "worker_cache") ?? ["worker" => 0];
|
||||||
if ($config["worker"] === server()->worker_id) {
|
if ($config["worker"] === server()->worker_id) {
|
||||||
return self::$store[$key] ?? null;
|
return self::$store[$key] ?? null;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user