From e263eb3f0b12721f10272a8d1ef8b50853eb6d37 Mon Sep 17 00:00:00 2001 From: mirzaev Date: Mon, 17 Feb 2025 20:55:11 +0700 Subject: [PATCH] resolved #22 --- mirzaev/baza/system/database.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mirzaev/baza/system/database.php b/mirzaev/baza/system/database.php index a3fb4bc..5a9a092 100755 --- a/mirzaev/baza/system/database.php +++ b/mirzaev/baza/system/database.php @@ -495,7 +495,11 @@ class database * * @return int Amount of records */ - public function count(): int{ + public function count(): int + { + // Deleting the database file cache + clearstatcache(true, $this->database); + // Exit (success) return $this->length > 0 && file_exists($this->database) ? filesize($this->database) / $this->length : 0; }