Expand my Community achievements bar.

SOLVED

Dispatcher Cache clear by curl script

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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