mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 15:39:14 +08:00
update: opcache fail abort
This commit is contained in:
parent
c8e6c79dd0
commit
29fc4206c0
@ -147,7 +147,9 @@ class ConfigController extends Controller
|
||||
abort(500, '修改失败');
|
||||
}
|
||||
if (function_exists('opcache_reset')) {
|
||||
opcache_reset();
|
||||
if (!opcache_reset()) {
|
||||
abort(500, '保存失败,请删除或检查opcache状态');
|
||||
}
|
||||
}
|
||||
\Artisan::call('config:cache');
|
||||
return response([
|
||||
|
Loading…
Reference in New Issue
Block a user