Skip to content

Commit

Permalink
Correction to #6341
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesagnew committed Oct 2, 2024
1 parent eccf6d7 commit bbd597c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void populateCaches() {
case CONCEPT_TRANSLATION_REVERSE:
timeoutSeconds =
SECONDS.convert(myStorageSettings.getTranslationCachesExpireAfterWriteInMinutes(), MINUTES);
maximumSize = 10000;
maximumSize = 500000;
break;
case PID_TO_FORCED_ID:
case FORCED_ID_TO_PID:
Expand Down Expand Up @@ -200,6 +200,12 @@ public enum CacheEnum {
* Value type: {@literal Optional<String>}
*/
PID_TO_FORCED_ID(Long.class),
/**
* TODO: JA this is duplicate with the CachingValidationSupport cache.
* A better solution would be to drop this cache for this item, and to
* create a new CachingValidationSupport implementation which uses
* the MemoryCacheService for all of its caches.
*/
CONCEPT_TRANSLATION(TranslationQuery.class),
MATCH_URL(String.class),
CONCEPT_TRANSLATION_REVERSE(TranslationQuery.class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public CachingValidationSupport(
myExpandValueSetCache = CacheFactory.build(theCacheTimeouts.getExpandValueSetMillis(), 100);
myValidateCodeCache = CacheFactory.build(theCacheTimeouts.getValidateCodeMillis(), 5000);
myLookupCodeCache = CacheFactory.build(theCacheTimeouts.getLookupCodeMillis(), 5000);
myTranslateCodeCache = CacheFactory.build(theCacheTimeouts.getTranslateCodeMillis(), 500000);
myTranslateCodeCache = CacheFactory.build(theCacheTimeouts.getTranslateCodeMillis(), 5000);
myCache = CacheFactory.build(theCacheTimeouts.getMiscMillis(), 5000);
myNonExpiringCache = Collections.synchronizedMap(new HashMap<>());

Expand Down

0 comments on commit bbd597c

Please sign in to comment.