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.
1 parent 39f0524 commit 372c9d2Copy full SHA for 372c9d2
1 file changed
apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
@@ -115,7 +115,7 @@ protected function getOpcacheSetupRecommendations(): array {
115
116
public function run(): SetupResult {
117
// Skip OPcache checks if running from CLI
118
- if (PHP_SAPI === 'cli') {
+ if (OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) {
119
return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.'));
120
}
121
0 commit comments