mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
opcache: fix opcache issue
This commit is contained in:
parent
f4b6f0aefe
commit
43193386bb
@ -138,10 +138,10 @@ class ConfigController extends Controller
|
|||||||
if (!\File::put(base_path() . '/config/v2board.php', "<?php\n return $data ;")) {
|
if (!\File::put(base_path() . '/config/v2board.php', "<?php\n return $data ;")) {
|
||||||
abort(500, '修改失败');
|
abort(500, '修改失败');
|
||||||
}
|
}
|
||||||
\Artisan::call('config:cache');
|
|
||||||
if (function_exists('opcache')) {
|
if (function_exists('opcache')) {
|
||||||
opcache_reset();
|
opcache_reset();
|
||||||
}
|
}
|
||||||
|
\Artisan::call('config:cache');
|
||||||
return response([
|
return response([
|
||||||
'data' => true
|
'data' => true
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user