mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
move is_fpm_mode() to global functions
This commit is contained in:
@@ -40,7 +40,7 @@ class class_cache_redis {
|
||||
if (isset($config['timeout']) && is_numeric($config['timeout'])) {
|
||||
$params[] = $config['timeout'];
|
||||
}
|
||||
if (nexus()->isFpmMode()) {
|
||||
if (is_fpm_mode()) {
|
||||
try {
|
||||
$connectResult = $redis->pconnect(...$params);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user