Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

Dispatcher Cache clear by curl script

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.
Chandra_gupta
Chandra_guptaAccepted solution
Level 4
Oct 16, 2015 2:28 AM UTC

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
Oct 16, 2015 2:28 AM UTC

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

Translate