Skip to content

Commit

Permalink
#1717 #1721 - Fix for table touch with query cache clear
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed May 20, 2019
1 parent 0762eaf commit 3829613
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Expand Up @@ -83,6 +83,7 @@ public void addInvalidate(Set<String> tables) {
*/
public void addClearQuery(BeanDescriptor<?> descriptor) {
queryCaches.add(descriptor);
touchedTables.add(descriptor.getBaseTable());
}

/**
Expand Down
Expand Up @@ -908,7 +908,6 @@ void persistTableIUD(TableIUD tableIUD, CacheChangeSet changeSet) {
if (noCaching) {
return;
}
changeSet.addInvalidate(desc);
changeSet.addClearQuery(desc);
// inserts don't invalidate the bean cache
if (tableIUD.isUpdateOrDelete()) {
Expand Down

0 comments on commit 3829613

Please sign in to comment.