Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ROMOPAPI
Title: ROMOPAPI
Version: 2.1.0
Version: 2.1.1
Authors@R:
person("Javier", "Gracia-Tabuenca", , "javier.graciatabuenca@tuni.fi", role = c("aut", "cre"),
comment = c(ORCID = "YOUR-ORCID-ID"))
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y openjdk-8-jdk liblzma-dev libbz2-dev li

# Install renv and restore packages
ARG ROMOPAPI_BRANCH=main
ARG BUILD_CACHE_BUSTER=2
ARG BUILD_CACHE_BUSTER=3

# Install renv and restore packages
RUN --mount=type=secret,id=build_github_pat \
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# ROMOPAPI 2.1.1
- Added caching concepts with code counts at startup

# ROMOPAPI 2.1.0
- Added getAPIInfo endpoint to API
- Updated db with large tree
Expand Down
5 changes: 5 additions & 0 deletions R/runApiServer.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ runApiServer <- function(
createCodeCountsTables(CDMdbHandler, codeCountsTable = "code_counts")
}

# Call getConceptsWithCodeCounts, to populate the cache
ParallelLogger::logInfo("Populating cache with concepts with code counts")
getConceptsWithCodeCounts_memoise(CDMdbHandler)


# Create plumber router
pathToPlumberFile <- system.file("plumber", "plumber.R", package = "ROMOPAPI")

Expand Down