From 2717b6bee1c790c1d14f0dac21cabf7dd0c030ab Mon Sep 17 00:00:00 2001 From: James Agnew Date: Wed, 2 Oct 2024 16:58:54 -0400 Subject: [PATCH 1/2] Expand translation cache --- .../hapi/validation/support/CachingValidationSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/support/CachingValidationSupport.java b/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/support/CachingValidationSupport.java index 7edb7effd39a..27b397172331 100644 --- a/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/support/CachingValidationSupport.java +++ b/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/support/CachingValidationSupport.java @@ -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(), 5000); + myTranslateCodeCache = CacheFactory.build(theCacheTimeouts.getTranslateCodeMillis(), 500000); myCache = CacheFactory.build(theCacheTimeouts.getMiscMillis(), 5000); myNonExpiringCache = Collections.synchronizedMap(new HashMap<>()); From ba14626b3678c23ae8bce83b2cbf681701b43012 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Wed, 2 Oct 2024 17:01:21 -0400 Subject: [PATCH 2/2] Add changelog --- .../fhir/changelog/7_6_0/6341-expand-translation-cache.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_0/6341-expand-translation-cache.yaml diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_0/6341-expand-translation-cache.yaml b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_0/6341-expand-translation-cache.yaml new file mode 100644 index 000000000000..e0e592c0d4a0 --- /dev/null +++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_0/6341-expand-translation-cache.yaml @@ -0,0 +1,6 @@ +--- +type: change +issue: 6341 +title: "The CachingValidationSupport cache for concept translations will + now keep up to 500000 translations instead of the previous 5000. + This will be made configurable in a future release."