Dispatcher Cache clear by curl script | Community
Skip to main content
Level 2
October 16, 2015
Solved

Dispatcher Cache clear by curl script

  • October 16, 2015
  • 1 reply
  • 4256 views

Hi All,

 

I have a requirement to clear dispatcher cache on auto deploy. Can some one share code which will clear dispatcher cache using curl script.

 

Thanks
LM

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 Chandra_gupta

Flush Dispatcher Cache:
curl -H “CQ-Action: Flush” -H “CQ-Handle: /content/geometrixx/en/products” -H “CQ-Path:/content/geometrixx/en/products” -H “Content-Length: 0″ -H “Content-Type: application/octet-stream” http://dispatcher-server-hostname:port/dispatcher/invalidate.cache

1 reply

Chandra_gupta
Chandra_guptaAccepted solution
Level 4
October 16, 2015

Flush Dispatcher Cache:
curl -H “CQ-Action: Flush” -H “CQ-Handle: /content/geometrixx/en/products” -H “CQ-Path:/content/geometrixx/en/products” -H “Content-Length: 0″ -H “Content-Type: application/octet-stream” http://dispatcher-server-hostname:port/dispatcher/invalidate.cache