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 b94a1f7 commit 39f0524Copy full SHA for 39f0524
1 file changed
apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
@@ -114,6 +114,11 @@ protected function getOpcacheSetupRecommendations(): array {
114
}
115
116
public function run(): SetupResult {
117
+ // Skip OPcache checks if running from CLI
118
+ if (PHP_SAPI === 'cli') {
119
+ return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.'));
120
+ }
121
+
122
[$level,$recommendations] = $this->getOpcacheSetupRecommendations();
123
if (!empty($recommendations)) {
124
return match($level) {
0 commit comments