We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84e5b47 + 9d062fb commit 1d97800Copy full SHA for 1d97800
apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
@@ -131,6 +131,11 @@ protected function getOpcacheSetupRecommendations(): array {
131
}
132
133
public function run(): SetupResult {
134
+ // Skip OPcache checks if running from CLI
135
+ if (\OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) {
136
+ return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.'));
137
+ }
138
+
139
[$level,$recommendations] = $this->getOpcacheSetupRecommendations();
140
if (!empty($recommendations)) {
141
return match($level) {
0 commit comments