cqsupport / webinar-dispatchercache

Sample code and configurations to support a webinar showing how to optimize dispatcher caching with Adobe CQ.
49 stars 20 forks source link

RFI: How does this refetching work #5

Closed royteeuwen closed 4 years ago

royteeuwen commented 4 years ago

Hey @andrewmkhoury ,

I have looked at your code, but I'm not completely following how the logic actually works? I see that there is a content builder that adds a temporary file which is named something with cq5 .post, but how does this tell the dispatcher module that it should refetch those paths? If you look at the docs of the dispatcher, you would need to add them as headers in the post request to /dispatcher/invalidate.cache request?

Thanks! Roy

royteeuwen commented 4 years ago

Ok, after some decompiling I see that the ReplicationContent get's added in the Http TransportBuilder as body content to the request.