Better name for cacheErrors
This commit is contained in:
parent
a12324c3a6
commit
06cbe7245c
|
@ -125,10 +125,10 @@ public class TerminologyCache {
|
|||
private static boolean cacheErrors;
|
||||
|
||||
static {
|
||||
String cacheErrorsProperty = System.getProperty("cacheErrors");
|
||||
cacheErrors = cacheErrorsProperty != null ? "TRUE".equals(cacheErrorsProperty.toUpperCase(Locale.ROOT)) : false;
|
||||
String cacheErrorsProperty = System.getProperty("fhir.txcache.cacheErrors");
|
||||
cacheErrors = cacheErrorsProperty != null && "TRUE".equals(cacheErrorsProperty.toUpperCase(Locale.ROOT));
|
||||
}
|
||||
|
||||
|
||||
// use lock from the context
|
||||
public TerminologyCache(Object lock, String folder) throws FileNotFoundException, IOException, FHIRException {
|
||||
super();
|
||||
|
@ -137,10 +137,12 @@ public class TerminologyCache {
|
|||
requestCount = 0;
|
||||
hitCount = 0;
|
||||
networkCount = 0;
|
||||
if (folder != null)
|
||||
|
||||
if (folder != null) {
|
||||
load();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void clear() {
|
||||
caches.clear();
|
||||
}
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -373,7 +373,7 @@
|
|||
<exclude>org/hl7/fhir/validation/cli/**</exclude>
|
||||
</excludes>
|
||||
<systemPropertyVariables>
|
||||
<cacheErrors>TRUE</cacheErrors>
|
||||
<fhir.txcache.cacheErrors>TRUE</fhir.txcache.cacheErrors>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
@ -405,7 +405,7 @@
|
|||
<exclude>org/hl7/fhir/validation/cli/**</exclude>
|
||||
</excludes>
|
||||
<systemPropertyVariables>
|
||||
<cacheErrors>TRUE</cacheErrors>
|
||||
<fhir.txcache.cacheErrors>TRUE</fhir.txcache.cacheErrors>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
Loading…
Reference in New Issue