Sending Request to Dispatcher not Publish

Avatar

Avatar

sunitac70336244

Avatar

sunitac70336244

sunitac70336244

07-08-2019

Dear All,

I have an below requirement.

When I will request one page for example (http://localhost/content/we-retail/us/en/women.html) then the request will go to dispatcher cache not to Publish and

It request will display the page from Dispatcher cache not from publish.

Can anybody put some lights how can I achieve this.

I am using AEM 6.4

Thanks in advance.

View Entire Topic

Avatar

Avatar

sunitac70336244

Avatar

sunitac70336244

sunitac70336244

08-08-2019

Thanks Vish.

I have updated my cache in dispatcher.any file like below and cache is working fine.

/cache

      {

      # The docroot must be equal to the document root of the webserver. The

      # dispatcher will store files relative to this directory and subsequent

      # requests may be "declined" by the dispatcher, allowing the webserver

      # to deliver them just like static files.

      # ###/docroot "/opt/communique/dispatcher/cache"

  /docroot "C:/Users/sunchoudhury/AEM-6.4/dispatcher/cache"

  /allowAuthorized "0"

Let me clear my requirement.

If the author will not do any changes in the page then the requested page will come from dispatcher cache only NOT FROM PUBLISH and if the author will do the changes in page and activate the content then the dispatcher cache will be updated with the updated page and the requested page will display the updated content from Dispatcher Cache.

For example

http://localhost:80/content/trainingproject/fr.html  ----> if page is updated in author , then updated page will be updated in cache and will come from cache.

http://localhost:80/content/trainingproject/fr.html  ----> if page will not be updated in author , then the last updated page will come from cache.

Thanks in advance