improve check install status when running in docker

This commit is contained in:
xiaomlove
2025-10-23 16:19:14 +07:00
parent c26bd6f1aa
commit 747d272653
4 changed files with 18 additions and 12 deletions
+1 -6
View File
@@ -40,7 +40,7 @@ class class_cache_redis {
if (isset($config['timeout']) && is_numeric($config['timeout'])) {
$params[] = $config['timeout'];
}
if ($this->isFpmMode()) {
if (nexus()->isFpmMode()) {
try {
$connectResult = $redis->pconnect(...$params);
} catch (\Exception $e) {
@@ -68,11 +68,6 @@ class class_cache_redis {
return true;
}
private function isFpmMode(): bool
{
return php_sapi_name() === 'fpm-fcgi';
}
function getIsEnabled() {
return $this->isEnabled;
}