Cleaning Cache Automatically

Can we make some settings that automatically clears the application cache, I mean end users do not clean it manually using the “Browser Cache Cleaner” app. Currently when we make any changes to the programs, end users who are actually using the system, needs to clear the cache using this app, can we make some configuration that new changes will be applied automatically for all the users?

2 Likes

Hi @ramavat

From what I understand, there is already this option available. Correct me if I am wrong, but if you look under “System settings → Analytics” there is an option there in terms of what cache settings you would like to have for your instance.

See the screenshot below from the Play instance:

Hope that helps!

1 Like

Thanks for your feedback. I will check this out.

1 Like

If you increase the version number under “Program details”, then Capture web app should automatically download the new metadata.

1 Like

Can you please elaborate more on this.

Hi,

I have tried this but it didn’t work out for me for Capture app. I have changed for an example tracker program stage name and it didn’t reflected, I had to clear the cache manually.

The solution you proposed is for Analytics?

1 Like

Yes, that is correct. I misunderstood your needs.

I typically use cache clearing/killing extensions in my browser. This is the easiest as I have found that the “Cache cleaner app” in DHIS2 often does not clear the cache properly.

Hopefully someone else has a solution for your issue.

1 Like

Go to the Maintenance app and select a program, you should then see the “Program details” page. One of the listed fields is called “Version” and contains a number. If you increase this number, then Capture web app should automatically download any metadata changes you made for this program.

1 Like

Yes, clearing cache sometimes from DHIS2 does not clear properly and we need to use the browser extension.

Do we have any settings, because as some features/programs are still under development and we need to ask our DHIS2 end users to clear the cache to reflect all the updated changes?

How does it work on production environement?