Skip to main content
Level 4
Jan 7, 2017 3:43 PM UTC
Solved

Workflow to Delete Dispatcher Cache

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.
joerghoh
joerghohAccepted solution
Adobe Employee
Jan 7, 2017 8:30 PM UTC

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
Jan 7, 2017 5:26 PM UTC

Hi

 can you please explain your use case a bit more?

By users do you mean authors?

Thanks

Dipt

Translate
Level 4
Jan 7, 2017 5:45 PM UTC

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

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Jan 7, 2017 8:30 PM UTC

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

Translate
Jan 9, 2017 12:07 PM UTC

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

Translate
Lokesh_Shivalingaiah
Level 10
Jan 9, 2017 7:49 PM UTC

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

Translate