Expand my Community achievements bar.

SOLVED

Workflow to Delete Dispatcher Cache

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

5 Replies

Avatar

Community Advisor

Hi

 can you please explain your use case a bit more?

By users do you mean authors?

Thanks

Dipt

Avatar

Level 5

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

Avatar

Correct answer by
Employee Advisor

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

Avatar

Former Community Member

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%20Dispa...) . 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

Avatar

Level 10

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