Apache Dispatcher invalidateHandler configured but not working. | Community
Skip to main content
Level 2
June 21, 2016
Solved

Apache Dispatcher invalidateHandler configured but not working.

  • June 21, 2016
  • 3 replies
  • 2291 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Hi,

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

Jörg

3 replies

Jitendra_S_Toma
Level 10
June 21, 2016

@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

kautuk_sahni
Community Manager
Community Manager
June 28, 2016

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
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
June 28, 2016

Hi,

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

Jörg