diff --git a/kiri-engine/Context.php b/kiri-engine/Context.php index 8da6349b..c9b5b647 100644 --- a/kiri-engine/Context.php +++ b/kiri-engine/Context.php @@ -127,7 +127,9 @@ class Context extends BaseContext */ public static function clearAll(): void { - static::$_contents = []; + if (Coroutine::getCid() === -1) { + static::$_contents = []; + } } /**