Merge pull request #46964 from nextcloud/backport/46353/stable28

This commit is contained in:
John Molakvoæ 2024-08-02 09:03:16 +02:00 committed by GitHub
commit 51aa19989c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,6 +131,11 @@ class PhpOpcacheSetup implements ISetupCheck {
}
public function run(): SetupResult {
// Skip OPcache checks if running from CLI
if (\OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) {
return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.'));
}
[$level,$recommendations] = $this->getOpcacheSetupRecommendations();
if (!empty($recommendations)) {
return match($level) {