BPM, Workflow, and Case

 View Only
Expand all | Collapse all

Custom plugin clear cashe issue

  • 1.  Custom plugin clear cashe issue

    Posted Mon April 05, 2021 08:32 AM

    Hello Folks,

    I will appreciate if you have any insight on issue we are facing.

    We have developed several Dojo based custom widgets and plug-ins for our ICM based solution. There are mostly client side plugins and so each time we deploy new version of plugins/widgets, we have to ask users to clear browser cache so new code will be in effect.

    Are there any ways to present this caching on browser and each time correct widget/plugin code will get fetched and executed?

    Appreciate your help.

    -Nitin



    ------------------------------
    Nitin Upasani
    ------------------------------


  • 2.  RE: Custom plugin clear cashe issue

    Posted Mon April 05, 2021 03:25 PM
    Try clearing websphere cache.

    ------------------------------
    srini kachala
    sr. it specialist
    northern natural gas
    omaha NE
    ------------------------------



  • 3.  RE: Custom plugin clear cashe issue

    Posted Mon April 05, 2021 04:07 PM

    Looks like I was not clear with issue.

    All plugin/widget code gets cached on user browser. When a new version is deployed, user has to clear browser cache so that new widget code gets pulled and executed. If we plan to provide access to solution company wide, it is not feasible to advise everyone to clear browser cache. This doesn't apply to ICN OOTB plugins/wigets but do apply to all custom code.

    So there has to be a way as how ICN writes widgets/plugins that always gets fetched from server.

    -Nitin



    ------------------------------
    Nitin Upasani
    ------------------------------



  • 4.  RE: Custom plugin clear cashe issue

    Posted Mon April 05, 2021 06:38 PM
    Hi Nitin,

    I don't believe there is any default browser caching from BPM in the first place. Once you deploy new snapshots with new UI elements, end users should get them right away. 

    If anything like this happening in your environment, most likely it's coming from your own implementation or something. 

    Unfortunately, I don't think you can get any resolution from this forum as this is not a BPM issue and not until you can demonstrate your problems to the people here.

    Regards,
    Thong

    ------------------------------
    Thong Huynh
    Sydney NSW
    ------------------------------



  • 5.  RE: Custom plugin clear cashe issue

    Posted Mon April 05, 2021 06:56 PM
    Hello Thong,

    This is not BPM issue. This is issue related to Case Client which runs on IBM Content Navigator. We develop case related widgets/plugins and deploy. All those are using Dojo and few using ReactJS. As widgets gets executed on client side, JS code gets cached on browser. So when we deploy new widget, it never get fetched to client browser until user clear browser cache.

    -Nitin

    ------------------------------
    Nitin Upasani
    ------------------------------



  • 6.  RE: Custom plugin clear cashe issue

    Posted Mon April 05, 2021 07:02 PM
    Hi Nitin,

    Ok, I thought you developed your widgets on IBM BPM. If not then I have no idea, let's wait for any Case Manager experts to chime in.

    Regards,
    Thong

    ------------------------------
    Thong Huynh
    Sydney NSW
    ------------------------------



  • 7.  RE: Custom plugin clear cashe issue

    Posted Tue April 06, 2021 02:13 AM
    We also faced similar issue initially when user reported multiple issues and every time we fixed & asked them to clear the browser cache.
    I think there is no way to clear client side cache, if there than every time user will login.. browser will clear cache and there would be extra overhead to load widget/plugin in cache every time which will lead to performance issue.

    So what we did is instead of fixing one issue at a time and ask user to clear the cache, we fixes multiple issues in one go.

    ------------------------------
    Rajesh Verma
    ------------------------------



  • 8.  RE: Custom plugin clear cashe issue

    Posted Tue April 06, 2021 07:12 AM
    Nitin, 

    Have you had any luck using the cacheBust configuration?  There are three ways to configure it, so perhaps one might work for your case if you use each new version number as the cacheBust value?  https://dojotoolkit.org/reference-guide/1.8/loader/amd.html 

    Good luck!
    Kyle

    ------------------------------
    Kyle Hoskins
    ------------------------------



  • 9.  RE: Custom plugin clear cashe issue

    Posted Tue April 06, 2021 10:08 AM
    Hello Kyle,

    We have already tried this call and not working. Browser still executes cached code. Someone from ICN might help as we don't see this issue with ICN OOTB widgets when we deploy new version of ICN. So there is definitely some methods as how to package and deploy widgets which I am not aware of.

    -Nitin

    ------------------------------
    Nitin Upasani
    ------------------------------



  • 10.  RE: Custom plugin clear cashe issue

    Posted Tue December 05, 2023 12:14 PM

    Good morning,
    I have the same problem. Were you able to solve it?

    thank you



    ------------------------------
    Tomas Aurora Vagnato
    ------------------------------



  • 11.  RE: Custom plugin clear cashe issue

    Posted Tue July 09, 2024 10:07 PM

    We facing similar issues. IBM suggested to upgrade the ICN.



    ------------------------------
    Sudheer Amireddy
    ------------------------------