mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Query Cache will not always be invalidated (#1717)
* provide failing test, that shows missing cache invalidation * FIX: proper cache invalidation when dependent table will be modified
This commit is contained in:
committed by
Rob Bygrave
parent
c6ba4d8155
commit
0cac723eac
@@ -220,6 +220,7 @@ final class BeanDescriptorCacheHelp<T> {
|
||||
*/
|
||||
private void queryCacheClear(CacheChangeSet changeSet) {
|
||||
if (queryCache != null) {
|
||||
changeSet.addInvalidate(desc);
|
||||
changeSet.addClearQuery(desc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user