Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Dispatcher ResourceOnly Flush


Level 3

We have a requirement, where we need to invalidate cache of a page when a certain page is published.

Case 1: invalidate cache for /content/en/a when /content/en/a/new is published

Case 2: invalidate cache for /content/en/a when /content/en/b is published

What is the setup required to achieve above scenarios


0 Replies


Level 3

I don't see any information here about the Dispatcher ResourceOnly Flush


Community Advisor

I don't think so you can do mapping from Dispatcher Flush Agent.

But what you can do is create an sling Event Listener which will trigger Dispatcher Flush  programatically for targeted resources as well.

HttpClient client = new HttpClient();

PostMethod post = new PostMethod(agent.getConfiguration().getTransportURI());

post.setRequestHeader("CQ-Action", "DELETE");
CQ-Handle", "/");
Content-Length", "0");
Content-Type", "application/octet-stream");


more info.

Invalidating Cached Pages From AEM