Workflow to Delete Dispatcher Cache | Community
Skip to main content
Level 4
January 7, 2017
Solved

Workflow to Delete Dispatcher Cache

  • January 7, 2017
  • 5 replies
  • 3323 views

Is there a way to create a Workflow to Delete the Dispatcher Cache?

I'd like to be able to do it by project ... example

/content/project1

/content/project2

If the user is on a page in project2 and wants to clear the dispatcher cache, I'd like to be able to find out the project and delete the dispatcher cache for that entire project, and that project ONLY.

Any help/examples is greatly appreciated.

Thank you for your help in advance.

-Dean

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 joerghoh

Hi,

this is not a business case, but rather a workaround for a problem. In normal cases the author should not care about the dispatcher cache at all. If the dispatcher cache makes problem w.r.t to invalid content it's rather a bug in the implementation.

Jörg

5 replies

Dipti_Chauhan
Community Advisor
Community Advisor
January 7, 2017

Hi

 can you please explain your use case a bit more?

By users do you mean authors?

Thanks

Dipt

Level 4
January 7, 2017

The business case:  Authors want the ability to clear cache for a given project at their discretion.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 7, 2017

Hi,

this is not a business case, but rather a workaround for a problem. In normal cases the author should not care about the dispatcher cache at all. If the dispatcher cache makes problem w.r.t to invalid content it's rather a bug in the implementation.

Jörg

January 9, 2017

Hi Dean,

One of the approach which should be adopted is to invalidate the dispatcher cache page on page activation. You can achieve this through CQ configuration of the author or publish replication agent.

Another approach can be manually invalidating the dispatcher cache (https://docs.adobe.com/docs/en/dispatcher/page-invalidate.html#Manually%20Invalidating%20the%20Dispatcher%20Cache) . As part of my previous implementation we had an event-listener which used to listen to EVENTS.ACTIVATE to post a invalidate cache request.

Hope this helps.

Regards
Ashish Ranjan

Lokesh_Shivalingaiah
Level 10
January 9, 2017

Hi Dean,

 I agree with Jorg and Ashish ! Its not an event which Author should control. Page cache invalidation should be done based on the node event and if that is not working then you may have to look your cache configurations