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:
Roland Praml
2019-05-20 20:25:18 +12:00
committed by Rob Bygrave
parent c6ba4d8155
commit 0cac723eac
5 changed files with 162 additions and 0 deletions
@@ -220,6 +220,7 @@ final class BeanDescriptorCacheHelp<T> {
*/
private void queryCacheClear(CacheChangeSet changeSet) {
if (queryCache != null) {
changeSet.addInvalidate(desc);
changeSet.addClearQuery(desc);
}
}