From 2c56967838545f9e3ac393a3777f778836718557 Mon Sep 17 00:00:00 2001 From: frytimo Date: Thu, 8 Jan 2026 13:36:13 -0400 Subject: [PATCH] Reset cache after deleting domains (#7687) --- core/domains/domain_edit.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/domains/domain_edit.php b/core/domains/domain_edit.php index 41846d2b92..ea6283a487 100644 --- a/core/domains/domain_edit.php +++ b/core/domains/domain_edit.php @@ -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');