Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Apache Dispatcher invalidateHandler configured but not working.

Avatar

Level 2
Level 2

According to the documentation here:  https://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_config.html, we should be able to call a script specified in the property /invalidateHandler in the /cache section of the dispatcher config

I have /invalidateHandler mapped to /var/www/cache/dispconfigs/disp.sh in publish-farm.any under /cache section but seems like I am unable to make a call to disp.sh. The script permissions are good and it works fine when I run it manually.

This URL started working after the invalidateHandler is enabled

curl -H "CQ-Action: Delete" -H "CQ-Handle: /content" -H "Content-Length: 0" -H "Content-Type: application/octet-stream" http://branda.com/invalidateHandler

but I am unable to get this URL working.I guess the syntax for the curl command below is wrong. A sample of how to use curl with invalidateHandler would be helpful

curl http://branda.com/invalidateHandler?parameter1&parameter2&parameter3

when I run this, the dispatcher.log says "The requested URL /invalidateHandler was not found on this server." 

Dispatcher Version: build 4.1.12

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

IIRC you need to do a POST request to this URL, a GET is not sufficient.

Jörg

View solution in original post

3 Replies

Avatar

Level 9

@SKK,

Is your dispatcher accessible by "http://branda.com/"? Invalidate Handler works just like the Activate/De-activation page works And, as far as In know Dispatcher has different invalidation handler url. something like invalidate.cache.

Does below url handled by custom module at the server level?

http://branda.com/invalidateHandler?parameter1&parameter2&parameter3

FYI

https://docs.adobe.com/docs/en/dispatcher.html

Avatar

Administrator

Hi

Can you please look at the answer posted and let us know if this worked for you or not.

If you have devised another way to resolve the issue, please post it in the community for communities benefit.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Correct answer by
Employee Advisor

Hi,

IIRC you need to do a POST request to this URL, a GET is not sufficient.

Jörg