Use clearTableCache() instead of $forceRead

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-12-27 17:52:26 +01:00
parent 1b913bb1da
commit 58226717f4

View File

@ -297,7 +297,9 @@ class StructureController extends AbstractController
bool $tableIsAView,
string $tableStorageEngine,
): string {
$showTable = $this->dbi->getTable(Current::$database, Current::$table)->getStatusInfo(forceRead: true);
// Clear the cache as some table information might have gotten changed due to the user action.
$this->dbi->getCache()->clearTableCache();
$showTable = $this->tableObj->getStatusInfo();
$tableInfoNunRows = $this->tableObj->getNumRows($showTable['Name']);
if (is_string($showTable)) {