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
     {
     }
-}
+}