Stick to Redis instead of APCu

This commit is contained in:
Pinga 2025-02-12 15:22:42 +02:00
parent 73e19087ae
commit fb2ef70b71
6 changed files with 87 additions and 94 deletions

View file

@ -768,9 +768,12 @@ class DapiController extends Controller
$registrar_id = !empty($params['registrar_id']) ? $params['registrar_id'] : ($_SESSION['auth_registrar_id'] ?? null);
$parts = extractDomainAndTLD($domain_name);
$domain_extension = $parts['tld'];
$domain_extension = $parts['tld'] ?? null;
$tld_id = $db->selectValue('SELECT id FROM domain_tld WHERE tld = ?', [ '.'.$domain_extension ]);
$tld_id = null;
if ($domain_extension !== null) {
$tld_id = $db->selectValue('SELECT id FROM domain_tld WHERE tld = ?', ['.' . $domain_extension]);
}
$result = getDomainPrice($db, $domain_name, $tld_id, $date_add, $command, $registrar_id, $currency);