소스 검색

Reset opcache

walkor 8 년 전
부모
커밋
01433af338
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      Lib/Constants.php

+ 6 - 1
Lib/Constants.php

@@ -21,6 +21,11 @@ ini_set('display_errors', 'on');
 // Reporting all.
 error_reporting(E_ALL);
 
+// Reset opcache.
+if (function_exists('opcache_reset')) {
+    opcache_reset();
+}
+
 // For onError callback.
 define('WORKERMAN_CONNECT_FAIL', 1);
 // For onError callback.
@@ -32,4 +37,4 @@ if(!class_exists('Error'))
     class Error extends Exception
     {
     }
-}
+}