8000 minor #57302 [Cache] Add a note about the change in the default cache… · symfony/symfony@954dfa7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 954dfa7

Browse files
committed
minor #57302 [Cache] Add a note about the change in the default cache namespace generation to the upgrade guide (mbabker)
This PR was merged into the 7.1 branch. Discussion ---------- [Cache] Add a note about the change in the default cache namespace generation to the upgrade guide | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT After deploying the Symfony 7.1 upgrade for a client, we immediately noticed a high rate of cache misses for one of our heavily used controller actions. Digging through the changes for the relevant upstream packages, it looks like this was introduced by way of #52948 and changing the algorithm used for the default cache namespaces when a `namespace` attribute isn't configured on the `cache.pool` service tag. To my knowledge, there is no way to configure a namespace for cache pools using the `framework.cache` configuration, so through the framework configuration, there is no way to avoid hitting this issue without either manually building cache services or getting creative with a compiler pass that runs before the core `CachePoolPass`, so IMO it's best to call out the change in the upgrade guide. Commits ------- f536f3c Add a note about the change in the default cache namespace generation to the upgrade guide
2 parents a3a2ded + f536f3c commit 954dfa7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

UPGRADE-7.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Cache
4545
-----
4646

4747
* Deprecate `CouchbaseBucketAdapter`, use `CouchbaseCollectionAdapter` with Couchbase 3 instead
48+
* The algorithm for the default cache namespace changed from SHA256 to XXH128
4849

4950
DependencyInjection
5051
-------------------

src/Symfony/Component/Cache/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CHANGELOG
88
* Deprecate `CouchbaseBucketAdapter`, use `CouchbaseCollectionAdapter`
99
* Add support for URL encoded characters in Couchbase DSN
1010
* Add support for using DSN with PDOAdapter
11+
* The algorithm for the default cache namespace changed from SHA256 to XXH128
1112

1213
7.0
1314
---

0 commit comments

Comments
 (0)
0