Skip to content

Commit

Permalink
fix(browse): Fix old browse config returned on get after upsert (#708)
Browse files Browse the repository at this point in the history
Closes: MSEARCH-897

(cherry picked from commit afc034a)
  • Loading branch information
viacheslavkol committed Dec 6, 2024
1 parent 4d13287 commit c9fc72e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug fixes
* Populate typeId and sourceId on subjects re-indexing ([MSEARCH-891](https://folio-org.atlassian.net/browse/MSEARCH-891))
* Fix old browse config returned on get after upsert ([MSEARCH-897](https://folio-org.atlassian.net/browse/MSEARCH-897))

### Dependencies
* Bump `opensearch` from `2.17.1` to `2.18.0` fixing protobuf-java CVE-2024-7254 ([MSEARCH-889](https://folio-org.atlassian.net/browse/MSEARCH-889))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public BrowseConfig getConfig(@NonNull BrowseType type, @NonNull BrowseOptionTyp
"Config for %s type %s must be present in database".formatted(typeValue, optionTypeValue)));
}

@CacheEvict(cacheNames = BROWSE_CONFIG_CACHE,
key = "@folioExecutionContext.tenantId + ':' + #type.value + ':' + #optionType.value")
@CacheEvict(cacheNames = BROWSE_CONFIG_CACHE, allEntries = true)
public void upsertConfig(@NonNull BrowseType type,
@NonNull BrowseOptionType optionType,
@NonNull BrowseConfig config) {
Expand Down

0 comments on commit c9fc72e

Please sign in to comment.