ClinetlIbs in Pblish Instance | Community
Skip to main content
Level 2
July 25, 2021
Solved

ClinetlIbs in Pblish Instance

  • July 25, 2021
  • 4 replies
  • 2032 views

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.
Best answer by Kiran_Vedantam

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.

4 replies

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
July 25, 2021

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.

apmagssAuthor
Level 2
July 25, 2021
in author it is working fine but in publish same code package installed but not reflecting CSS styles.
arunpatidar
Community Advisor
Community Advisor
July 25, 2021

Hi,

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

Arun Patidar
apmagssAuthor
Level 2
July 25, 2021
This is on publish instance and laetst code available on publish as well as verified.
Adobe Employee
July 26, 2021

@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

Shubham_borole
Community Advisor
Community Advisor
July 26, 2021

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