diff --git a/src/Core/ClassInfo.php b/src/Core/ClassInfo.php index 1c59ddfc6..57bfae4de 100644 --- a/src/Core/ClassInfo.php +++ b/src/Core/ClassInfo.php @@ -82,7 +82,8 @@ class ClassInfo public static function hasTable($tableName) { $cache = self::getCache(); - $cacheKey = 'tableList'; + $configData = serialize(DB::getConfig()); + $cacheKey = 'tableList_' . md5($configData); $tableList = $cache->get($cacheKey) ?? []; if (empty($tableList) && DB::is_active()) { $tableList = DB::get_schema()->tableList();