← Back to team overview

dhis2-devs team mailing list archive

Re: DHIS2 - Caching & testing

 

Okay. For the custom forms to update, you need to click "save and close" in
the editor.

On Wed, Sep 17, 2014 at 11:42 AM, Robin Martens <martens@xxxxxxx> wrote:

>  Hi Lars,
>
>
>
> I'm not sure what you mean, but in my custom data forms for events (which
> I modify and test through a browser, no database hacking involved), I had
> this issue of caching. Is this what you meant that shouldn't be happening?
>
>
>
> Regards,
>
>
>
> Robin
>
>
>
> *From:* Lars Helge Øverland [mailto:larshelge@xxxxxxxxx]
> *Sent:* 17 September 2014 11:38
>
> *To:* Robin Martens
> *Cc:* dhis2-users@xxxxxxxxxxxxxxxxxxx; DHIS 2 Developers list
> *Subject:* Re: [Dhis2-devs] DHIS2 - Caching & testing
>
>
>
> Actually in production, when you do a change to a data set or sections,
> the form should automatically be re-downloaded to the browser. So the end
> user should be unaware of this.
>
>
>
> During development when you hack away in the db etc it's useful to clear
> everything from the browser.
>
>
>
> On Wed, Sep 17, 2014 at 11:34 AM, Robin Martens <martens@xxxxxxx> wrote:
>
> This works great. Thanks, Lars!
>
>
>
> If it's not yet in there, might be useful to add it to the implementation
> or user manuals.
>
>
>
> Robin
>
>
>
> *From:* Lars Helge Øverland [mailto:larshelge@xxxxxxxxx]
> *Sent:* 17 September 2014 11:19
> *To:* Robin Martens
> *Cc:* dhis2-users@xxxxxxxxxxxxxxxxxxx; DHIS 2 Developers list
> *Subject:* Re: [Dhis2-devs] DHIS2 - Caching & testing
>
>
>
> Hi Robin,
>
>
>
> with caching, are you referring to data entry forms?
>
>
>
> If so, those are stored in indexdb / localstorage to support offline
> capture, which is not cleared by default when clearing cache in most
> browsers. For development this chrome extension can be recommended:
>
>
>
>
> https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn
>
>
>
> Go to options and select everything from beginning of time.
>
>
>
> Lars
>
>
>
>
>
>
>
>
>
>
>
> On Wed, Sep 17, 2014 at 10:25 AM, Robin Martens <martens@xxxxxxx> wrote:
>
> Hi all,
>
>
>
> I'm currently testing some final adjustments, however there's somewhere a
> caching preventing me from seeing the last updates right away in my
> browser. I tried deleting both browser caching and DHIS2 caching (via
> Maintenance module) and that for Google Chrome, Mozilla, and IE. Generally,
> this is what I noticed (especially with respect to modifications in data
> entry templates):
>
>
>
> 1.       Google Chrome (incognito mode): a few hours of delay before
> updates are visible in the browser.
>
> 2.       Mozilla: I don't manage to see any updates at all. The browser
> is still working on the form of 2 weeks ago.
>
> 3.       IE: Idem as Mozilla.
>
>
>
> From where my question: which browser & caching methods do you use for
> development?
>
>
>
> Regards,
>
>
>
> Robin
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
>

References