From a5d7d515c2c4eb7f82ac86b38872826b6e69001c Mon Sep 17 00:00:00 2001 From: Tigrov Date: Mon, 24 Mar 2025 20:40:28 +0700 Subject: [PATCH 1/2] Remove `getCacheKey()` and `getCacheTag()` from `Schema` --- src/Schema.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/Schema.php b/src/Schema.php index d5b256c76..4a81a9083 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -906,28 +906,4 @@ private function loadTableConstraints(string $tableName, string $returnType): ar return $result[$returnType]; } - - /** - * Returns the cache key for the specified table name. - * - * @param string $name The table name. - * - * @return array The cache key. - */ - protected function getCacheKey(string $name): array - { - return [self::class, ...$this->generateCacheKey(), $this->db->getQuoter()->getRawTableName($name)]; - } - - /** - * Returns the cache tag name. - * - * This allows {@see refresh()} to invalidate all cached table schemas. - * - * @return string The cache tag name. - */ - protected function getCacheTag(): string - { - return md5(serialize([self::class, ...$this->generateCacheKey()])); - } } From 371d7ec41efd8fba76fb61e72b4280eca82f6e8b Mon Sep 17 00:00:00 2001 From: Tigrov Date: Mon, 24 Mar 2025 21:38:52 +0700 Subject: [PATCH 2/2] Add line to CHANGELOG.md [skip ci] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35dad03ab..7506eda89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ - Chg #390: Remove `yiisoft/json` dependency (@Tigrov) - Enh #393: Refactor according changes in `db` package (@Tigrov) - New #391: Add `caseSensitive` option to like condition (@vjik) +- Enh #396: Remove `getCacheKey()` and `getCacheTag()` methods from `Schema` class (@Tigrov) ## 1.3.0 March 21, 2024