Merge pull request #244 from luisberga/cache-readme

Changing cached search results time
This commit is contained in:
Jens Kristian Villadsen
2021-06-08 19:19:37 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -351,6 +351,11 @@ elasticsearch.schema_management_strategy=CREATE
Set `hapi.fhir.lastn_enabled=true` in the [application.yaml](https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/src/main/resources/application.yaml) file to enable the $lastn operation on this server. Note that the $lastn operation relies on Elasticsearch, so for $lastn to work, indexing must be enabled using Elasticsearch. Set `hapi.fhir.lastn_enabled=true` in the [application.yaml](https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/src/main/resources/application.yaml) file to enable the $lastn operation on this server. Note that the $lastn operation relies on Elasticsearch, so for $lastn to work, indexing must be enabled using Elasticsearch.
## Changing cached search results time
It is possible to change the cached search results time. The option `reuse_cached_search_results_millis` in the [application.yaml] is 6000 miliseconds by default.
Set `reuse_cached_search_results_millis: -1` in the [application.yaml] file to ignore the cache time every search.
## Build the distroless variant of the image (for lower footprint and improved security) ## Build the distroless variant of the image (for lower footprint and improved security)
The default Dockerfile contains a `release-distroless` stage to build a variant of the image The default Dockerfile contains a `release-distroless` stage to build a variant of the image