Skip to content

Commit 843ff52

Browse files
committed
fix reset cache
1 parent 79fe837 commit 843ff52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/Database/BaseConnection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,8 @@ public function tableExists(string $tableName, bool $cached = true): bool
14311431
);
14321432

14331433
// table doesn't exist but still in cache - lets reset cache, it can be rebuilt later
1434-
if ($key !== false && ! $tableExists) {
1434+
// OR if table does exist but is not found in cache
1435+
if (($key !== false && ! $tableExists) || ($key === false && $tableExists)) {
14351436
$this->resetDataCache();
14361437
}
14371438
}

0 commit comments

Comments
 (0)