Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Server Cache button in ATLAS does not work #2274

Closed
konstjar opened this issue May 18, 2023 · 3 comments · Fixed by #2406
Closed

Clear Server Cache button in ATLAS does not work #2274

konstjar opened this issue May 18, 2023 · 3 comments · Fixed by #2406
Assignees
Milestone

Comments

@konstjar
Copy link
Contributor

Expected behaviour

ATLAS has "Clear Server Cache" button on Configuration page. Expected that endpoint is present and it clears all in-memory cache and truncates "cdm_cache" table in application database. Maybe anything else?

Actual behavior

Clicking it request goes to WebAPI/cache/clear endpoint that does not exist. 404 comes as response.
API Documentation does not show the endpoint too: http://webapidoc.ohdsi.org

Steps to reproduce behavior

  1. Enable authentication in ATLAS/WebAPI
  2. Open Configuration page with "admin" role
  3. Click "Clear Server Cache" button
@konstjar konstjar added this to the v2.13.1 milestone May 18, 2023
@chrisknoll
Copy link
Collaborator

Possible dupe of OHDSI/Atlas#2847.

@anthonysena anthonysena modified the milestones: v2.13.1, v2.15 Sep 19, 2023
@anthonysena anthonysena moved this to 📋 Backlog in Atlas/WebAPI v2.15 Nov 21, 2023
@anthonysena
Copy link
Collaborator

For reference, we're referring to this button:

Image

The proposed behavior should be: clear all results from the WebAPI cdm_cache and achilles_results_cache tables. This would work across all cached data sources configured in WebAPI. Perhaps we rename this button "Clear WebAPI cache"?

Question: should this only clear the cached data in the WebAPI database and/or the CDM(s) results table(s)?

For this button:

Image

We'd clear the table that holds the achilles_record_count and re-build and re-cache this information in the WebAPI database? Perhaps we need to rename this "refresh record count cache"?

@anthonysena anthonysena self-assigned this Feb 13, 2024
@anthonysena
Copy link
Collaborator

Noting the WebAPI endpoints for the buttons above:

  • Clear Server Cache: WebAPI/cache/clear
  • Data Source Refresh: WebAPI/cdmresults/<sourceKey>/refreshCache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants