diff --git a/includes/Title.php b/includes/Title.php index fb56638..f32dffe 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -67,8 +67,6 @@ private function getNamespaceInfo(string $namespace): array|null { $redis->auth($redisAuth); } - $redis->close(); - $prefix = Config::get('redis-prefix'); $ver = 'v' . self::REDIS_DB_VER; $nsInfoHashKey = "$prefix:$ver:{$this->databaseName}"; @@ -82,6 +80,8 @@ private function getNamespaceInfo(string $namespace): array|null { $namespaceInfoString = $redis->hGet($nsInfoHashKey, strtolower($namespace)); + $redis->close(); + if (!$namespaceInfoString) { return null; }