From fe3f60129df313f0805fd683e4a9d2ba41d8903a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 16 Oct 2024 20:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0worker=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/worker.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/config/worker.php b/config/worker.php index 870503db3..974fe2415 100644 --- a/config/worker.php +++ b/config/worker.php @@ -33,7 +33,7 @@ return [ 'name' => 'ThinkAdmin', 'count' => 4, ], - // 监控文件变更重载 + // 监控文件变更重载,仅 Debug 模式有效 'files' => [ // 监控检测间隔(单位秒,零不监控) 'time' => 3, @@ -42,16 +42,11 @@ return [ // 文件监控后缀(默认监控 所有 文件) 'exts' => ['*'] ], - // 监控内存超限重载 + // 监控内存超限重载,仅 Debug 模式有效 'memory' => [ // 监控检测间隔(单位秒,零不监控) 'time' => 60, // 限制内存大小(可选单位有 G M K ) 'limit' => '1G' ], - 'customs' => [ - 'test' => [ - 'classes' => \plugin\worker\support\HttpServer::class - ] - ] ]; \ No newline at end of file