ClinetlIbs in Pblish Instance | Community
Skip to main content
Level 2
Jul 25, 2021 6:50 AM UTC
Solved

ClinetlIbs in Pblish Instance

Hi All,

 

Did anyone face issue with client libs in publish instance..like  latest clients code is available but rendering is taking old client libs.What might be the issue?

 

While rendering i added as ? query params then it is reflecting latest code.

 

How to fix any idea?

 

Thanks,

Nani

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kiran_Vedantam
Kiran_VedantamAccepted solution
New Participant
Jul 25, 2021 7:34 AM UTC

Hi @apmagss,

 

You can debug like below:

  1. Check if the latest clientlibs are in publish instance
    1. If not replicate or install them properly
  2. Check if the code is called properly in the component
    1. If not add the latest stuff properly
  3. Clear the cache and load the page
    1. This could fix your issue as it is working for you when the "?" is added to the URL
  4. View the source of the page and check the clientlibs that are loading
    1. This could lead you to the clientlibs that are loading on that page for your component

Hope this helps!

 

Thanks,

Kiran Vedantam.

8 replies

Shubham_borole
New Participant
Jul 26, 2021 5:36 PM UTC

Hello,

Can you try hitting the publish instance only (and not dispatcher or VIP) and see if it seems fine? It looks like you are trying to hit the dispatcher/VIP and seeing cached values. Please try to clear any dispatcher and CDN/VIP caching (if any). 

Also you can compare the js or css call for publish vs dispatcher/s to see the code difference eg: http://host:4503/etc.clientlibs/project/clientlibs/component/clientlib-component.js vs  http://host:8080/etc.clientlibs/project/clientlibs/component/clientlib-component.js   After cache clear these should be same

Translate
Employee
Jul 26, 2021 6:20 AM UTC

@apmagss ,

 

As you said that While rendering when you added as ? query params then it is reflecting latest code.

Can you please restart your publish environment?

 

Hope tis helps!!
Thanks

Translate
arunpatidar
New Participant
Jul 25, 2021 12:58 PM UTC

Hi,

This is due to dispatcher caching, you should clear the dispatcher caching.

Translate
Arun Patidar
apmagssAuthor
Level 2
Jul 25, 2021 3:57 PM UTC
This is on publish instance and laetst code available on publish as well as verified.
Translate
Kiran_Vedantam
Kiran_VedantamAccepted solution
New Participant
Jul 25, 2021 7:34 AM UTC

Hi @apmagss,

 

You can debug like below:

  1. Check if the latest clientlibs are in publish instance
    1. If not replicate or install them properly
  2. Check if the code is called properly in the component
    1. If not add the latest stuff properly
  3. Clear the cache and load the page
    1. This could fix your issue as it is working for you when the "?" is added to the URL
  4. View the source of the page and check the clientlibs that are loading
    1. This could lead you to the clientlibs that are loading on that page for your component

Hope this helps!

 

Thanks,

Kiran Vedantam.

Translate
apmagssAuthor
Level 2
Jul 25, 2021 3:58 PM UTC
in author it is working fine but in publish same code package installed but not reflecting CSS styles.
Translate