Reset the opcache after install (#14098)

* Reset the opcache after install
Follow up to #14097

* clear the config, will be cached again on daily anyway
This commit is contained in:
Tony Murray
2022-07-09 02:57:09 -05:00
committed by GitHub
parent 25c40301d1
commit 9d28ee9200

View File

@@ -83,7 +83,11 @@ class FinalizeController extends InstallationController implements InstallerStep
base_path('.env')
);
\Artisan::call('config:cache'); // make sure to update config in case it is cached
// make sure the new env is reflected live
\Artisan::call('config:clear');
if (function_exists('opcache_reset')) {
opcache_reset();
}
return $env;
}