fix: check both CLI and value

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
pull/46353/head
Git'Fellow 2 years ago committed by GitHub
parent 39f052407a
commit 372c9d2ee6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/settings/lib/SetupChecks/PhpOpcacheSetup.php

@ -115,7 +115,7 @@ class PhpOpcacheSetup implements ISetupCheck {
public function run(): SetupResult {
// Skip OPcache checks if running from CLI
if (PHP_SAPI === 'cli') {
if (OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) {
return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.'));
}

Loading…
Cancel
Save