diff --git a/src/ACL/Login.php b/src/ACL/Login.php index 3ba9a1c..e9d3dc9 100644 --- a/src/ACL/Login.php +++ b/src/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/src/DB/IO.php b/src/DB/IO.php index d66a7d9..232c303 100644 --- a/src/DB/IO.php +++ b/src/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,