#1717 - Add tests for Query Cache invalidation

Revert the prior change that added the extra calls to
changeSet.addInvalidate(desc); as they are not needed.
This commit is contained in:
rob bygrave
2019-05-20 21:14:47 +12:00
parent 0cac723eac
commit dcd81a857d
2 changed files with 1 additions and 4 deletions
@@ -220,7 +220,6 @@ final class BeanDescriptorCacheHelp<T> {
*/
private void queryCacheClear(CacheChangeSet changeSet) {
if (queryCache != null) {
changeSet.addInvalidate(desc);
changeSet.addClearQuery(desc);
}
}
@@ -910,12 +909,11 @@ final class BeanDescriptorCacheHelp<T> {
return;
}
changeSet.addInvalidate(desc);
changeSet.addClearQuery(desc);
// inserts don't invalidate the bean cache
if (tableIUD.isUpdateOrDelete()) {
changeSet.addClearBean(desc);
}
// any change invalidates the query cache
changeSet.addClearQuery(desc);
// any change invalidates the collection IDs cache
for (BeanPropertyAssocOne<?> imported : propertiesOneImported) {
imported.cacheClear(changeSet);