From bace33ec89449dddb99f792ad52e4dba0d92913e Mon Sep 17 00:00:00 2001 From: wenbo Date: Mon, 13 Dec 2021 23:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3compile=20=E5=BD=93=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=B7=B2=E8=A2=AB=E7=BC=93=E5=AD=98=E6=97=B6,=20?= =?UTF-8?q?=E8=AE=A9=E5=AE=83=E5=A4=B1=E6=95=88,=20=E7=84=B6=E5=90=8E?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=BC=93=E5=AD=98.=20=E5=8F=8D=E4=B9=8B,=20?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=BC=93=E5=AD=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Opcache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Opcache.php b/src/Opcache.php index 9b57a59..3bc489b 100644 --- a/src/Opcache.php +++ b/src/Opcache.php @@ -100,8 +100,8 @@ public function compile($force = false): ?array try { if (opcache_is_script_cached($file)) { opcache_invalidate($file, $force); - opcache_compile_file($file); } + opcache_compile_file($file); ++$compiled; } catch (Throwable $e) {