From ae125ea45eab781c864bf1bd5654994dc7e20750 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 16 Apr 2025 17:44:42 +0900 Subject: [PATCH] DB IO cache reset flag add to ignore warning, and ignore cache reset warning in Login class --- src/ACL/Login.php | 2 +- src/DB/IO.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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,