This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2025-02-17 20:55:11 +07:00
parent 260be006ae
commit e263eb3f0b

View File

@ -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;
}