update: fix opcache return null

This commit is contained in:
Tokumeikoi 2020-11-18 11:12:38 +08:00
parent e030ed8d80
commit 732edcad57

View File

@ -152,7 +152,7 @@ class ConfigController extends Controller
abort(500, '修改失败');
}
if (function_exists('opcache_reset')) {
if (!opcache_reset()) {
if (opcache_reset() === false) {
abort(500, '缓存清除失败请卸载或检查opcache配置状态');
}
}