This commit is contained in:
2024-12-09 16:02:11 +08:00
parent 327aff9ff7
commit 60d3418e4a
2 changed files with 5 additions and 1 deletions

View File

@@ -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",

View File

@@ -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();