Skip to content

Commit

Permalink
Merge pull request #46964 from nextcloud/backport/46353/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Aug 2, 2024
2 parents 0d48e94 + 356c49d commit 51aa199
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ protected function getOpcacheSetupRecommendations(): array {
}

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) {
Expand Down

0 comments on commit 51aa199

Please sign in to comment.