Browse Source

Reset opcache

walkor 8 năm trước cách đây
mục cha
commit
01433af338
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  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
     {
     }
-}
+}