diff --git a/www/lib/CoreLibs/ACL/Login.php b/www/lib/CoreLibs/ACL/Login.php index 3ba9a1cc..e9d3dc97 100644 --- a/www/lib/CoreLibs/ACL/Login.php +++ b/www/lib/CoreLibs/ACL/Login.php @@ -1154,7 +1154,7 @@ class Login $q ); // reset any query data that might exist - $this->db->dbCacheReset($q, $params); + $this->db->dbCacheReset($q, $params, show_warning:false); // never cache return data $res = $this->db->dbReturnParams($q, $params, $this->db::NO_CACHE); // query was not run successful diff --git a/www/lib/CoreLibs/DB/IO.php b/www/lib/CoreLibs/DB/IO.php index d66a7d9c..232c3038 100644 --- a/www/lib/CoreLibs/DB/IO.php +++ b/www/lib/CoreLibs/DB/IO.php @@ -2942,12 +2942,14 @@ class IO * data to create a unique call one, optional * @return bool False if query not found, true if success */ - public function dbCacheReset(string $query, array $params = []): bool + public function dbCacheReset(string $query, array $params = [], bool $show_warning = true): bool { - $this->__dbErrorReset(); $query_hash = $this->dbBuildQueryHash($query, $params); // clears cache for this query - if (empty($this->cursor_ext[$query_hash]['query'])) { + if ( + $show_warning && + empty($this->cursor_ext[$query_hash]['query']) + ) { $this->__dbWarning(18, context: [ 'query' => $query, 'params' => $params,