update: opcache fail abort

This commit is contained in:
Tokumeikoi 2020-09-23 14:37:24 +08:00
parent c8e6c79dd0
commit 29fc4206c0

View File

@ -147,7 +147,9 @@ class ConfigController extends Controller
abort(500, '修改失败'); abort(500, '修改失败');
} }
if (function_exists('opcache_reset')) { if (function_exists('opcache_reset')) {
opcache_reset(); if (!opcache_reset()) {
abort(500, '保存失败请删除或检查opcache状态');
}
} }
\Artisan::call('config:cache'); \Artisan::call('config:cache');
return response([ return response([