Version 5.0.0 beta 4

This commit is contained in:
Neo committed 2025-12-19 16:57:00 -08:00
1 parent e86153356a
commit 2f24f9de48
276 files changed
+8614 -6044

No files matched your search

+11 -1
View File
@@ -2920,13 +2920,23 @@ class Db extends mysqli
{
$this->cachedTableData[ $tableName ] = array( 'rows' => 0, 'size' => 0 );
$this->cachedTableData[ $tableName ]['rows'] = $this->select( 'count(*)', $tableName )->first();
if ( ! \IPS\CIC )
{
/* Outside of Cloud we don't know if it's InnoDB, etc */
$this->cachedTableData[ $tableName ]['rows'] = $this->select( 'count(*)', $tableName )->first();
}
$result = $this->forceQuery("SHOW TABLE STATUS WHERE name LIKE '" . $this->prefix . $tableName . "'");
while( $data = $result->fetch_assoc() )
{
$this->cachedTableData[ $tableName ]['size'] = $data['Data_length'];
if ( \IPS\CIC )
{
/* Less accurate but much faster */
$this->cachedTableData[ $tableName ]['rows'] = $data['Rows'];
}
}
}