OpenMRS module cache issue when calling a rest API end point

Hi Everyone,

We developed a pharmacy module for OpenMRS. Our testers have reported a strange issue where previous data reappear 1 time on 10 (this is an average) page refresh. At first, we thought it was related to the web browser cache, so we disabled it and passed it directly via the API calls. But we encountered the same issue. It seems 1 time on 10, the API brings back the old data…

In the following screenshots, you can see that sometimes the value of the field Virtual Stock goes back to its previous value 1 instead of the new 16. We checked on the database, and the value is 16.

Has anyone else encountered this?

Thank you all.

Good response

Cached response

Which versions of the OpenMRS platform and REST webservices module are you running?

Hi @dkayiwa. The OpenMRS version is 2.3.2 and 2.29.0.b675eb for Rest Web Services. Thanks

Does it still happen even after you temporarily remove all your custom modules?