Use clearTableCache() instead of $forceRead
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
1b913bb1da
commit
58226717f4
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user