Reset cache after deleting domains (#7687)

This commit is contained in:
frytimo
2026-01-08 13:36:13 -04:00
committed by GitHub
parent dd40d23d71
commit 2c56967838

View File

@@ -84,6 +84,10 @@
$obj = new domains;
$obj->delete($array);
//reset the cache
$cache = new cache;
$cache->flush();
//redirect
header('Location: domains.php');
exit;
@@ -119,7 +123,7 @@
//add a domain to the database
if ($action == "add" && permission_exists('domain_add')) {
$sql = "select count(*) from v_domains ";
$sql = "select count(domain_uuid) from v_domains ";
$sql .= "where lower(domain_name) = :domain_name ";
$parameters['domain_name'] = $domain_name;
$num_rows = $database->select($sql, $parameters, 'column');