opcache
This commit is contained in:
@@ -35,7 +35,8 @@
|
||||
"moonlandsoft/yii2-phpexcel": "2.*",
|
||||
"ext-bcmath": "*",
|
||||
"ext-openssl": "*",
|
||||
"ext-redis": "*"
|
||||
"ext-redis": "*",
|
||||
"ext-zend-opcache": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"yiisoft/yii2-debug": "~2.1.0",
|
||||
|
||||
@@ -18,5 +18,8 @@ $config = yii\helpers\ArrayHelper::merge(
|
||||
|
||||
if ($_GET['test']?? '' === 'liqi') {
|
||||
print_r(get_device_type());die;
|
||||
} elseif($_GET['test']?? '' === 'restartOp') {
|
||||
$result = opcache_reset();
|
||||
echo $result ? 'OPcache 已重置' : 'OPcache 重置失败';
|
||||
}
|
||||
(new \common\core\WebApplication($config))->run();
|
||||
|
||||
Reference in New Issue
Block a user