Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

User's Component

Avatar

Former Community Member

Hi,

 

i've developed a component where use can select the level1 Pages, and able to see the child pages of that current page. its wroking fine in author instance but in publish instance its throwing the cache issue. IIf i clear the cache it working. but end user cann't clear the cache always right. So, to clear the cache issue for the end user what logic to be used?

1 Accepted Solution

Avatar

Correct answer by
Level 3

You need to have a Dispatcher Instance setup ,dispatcher flush agent set up in author instance which invalidates the cached page /asset once the page/asset has been activated.Sometimes even after dispatcher cache clear, old content will be rendered due to browser cache.If issue persists ensure that the browser cache is removed or try in incognito window for proper testing.

Refer the below doc for reference.

https://docs.adobe.com/docs/en/cq/5-6/deploying/dispatcher/page_invalidate.html#Invalidating%20Dispa...

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

You need to have a Dispatcher Instance setup ,dispatcher flush agent set up in author instance which invalidates the cached page /asset once the page/asset has been activated.Sometimes even after dispatcher cache clear, old content will be rendered due to browser cache.If issue persists ensure that the browser cache is removed or try in incognito window for proper testing.

Refer the below doc for reference.

https://docs.adobe.com/docs/en/cq/5-6/deploying/dispatcher/page_invalidate.html#Invalidating%20Dispa...

Avatar

Level 10

1. Have you setup dispatcher?

2. How are you using this component in Publish? Components are for only author instance.

3. Once the page is select are you using Ajax or Java code to get child pages?

Thanks