mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Centralize CollectionCacheKey instantiation and make it easy to override #6991
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @umpirsky on GitHub (Jun 14, 2022).
Feature Request
Summary
There are cases when running different PHP versions, or caching library versions on different servers (multi server environment). This is during the upgrades when you need to update servers one by one. And they are sharing the same cache, which sometimes lead to incompatibility issues.
In this case, it is beneficial to be able to separate caches (cache keys) depending on the PHP version or whatever you find important and conflicting.
If we look at new CollectionCacheKey instantiation, we can see that it's spread across multiple services which makes it hard to override.
Do you think this is something that is worth centralizing, or there are smarter approaches to separating this caches?
Thanks.
@derrabus commented on GitHub (Jun 14, 2022):
Should they though?
@umpirsky commented on GitHub (Jun 14, 2022):
Other then during migration times, it makes sense to share.