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¶meter2¶meter3
when I run this, the dispatcher.log says "The requested URL /invalidateHandler was not found on this server."
Dispatcher Version: build 4.1.12
Solved! Go to Solution.
Hi,
IIRC you need to do a POST request to this URL, a GET is not sufficient.
Jörg
@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¶meter2¶meter3
FYI
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
Views
Replies
Total Likes
Hi,
IIRC you need to do a POST request to this URL, a GET is not sufficient.
Jörg