Collection cache key? #10467
Replies: 1 comment 2 replies
-
Personally, I have never used the L2 cache, so take my answer with a grain of salt. These two PRs look related to your question:
In fact, the first one changed the cache key computation from the The second PR applied a similar-looking refactoring in another area, also switching to the root entity name without further exaplanation. It contains a test case that might help you to write a "reproducer" test yourself. In my experience, the possibility of having to deal with entity inheritance and/or mapped superclasses is often overlooked, so you might very well have found a valid bug. My recommendation would be to report that bug as a PR against the 2.14.x branch, with the PR adding a new, failing test. Have a look at the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
There are many subtleties in doctrine that I don't understand.
But why the collection cache is based on an key that involve
rootEntityName
?For instance how does it works in the following case:
The code below should be computing a key that is something like : "commonClass_XX_attribute" in both cases and so this might conflict right ? (I am looking for a second level cache issue in one application and that's how I end up here)
orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php
Line 610 in ed56f42
This is actually same for timestampKey, right ?
orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php
Line 97 in ed56f42
Thank you for your help :o)
Beta Was this translation helpful? Give feedback.
All reactions