-
-
Notifications
You must be signed in to change notification settings - Fork 268
Open
Description
Hello. Currently, there are two methods in OrmQueryRequest that control whether a query should put to cache: isBeanCachePutMany and isBeanCachePut.
The issue is that isBeanCachePutMany uses transaction.isSkipCacheExplicit(), while isBeanCachePut uses transaction.isSkipCache(). The latter also checks whether the transaction is read-only. I believe both methods should use transaction.isSkipCache() as the current behavior can cause cache pollution when a batch insert is rolled back, because data may already be written to the cache
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels