Not able to clear dispatcher cache with the curl command | Community
Skip to main content
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 SivakumarKanoori

@keerthi0555 :

 

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

 

Thanks 

Siva

2 replies

krishna_sai
Community Advisor
Community Advisor
June 12, 2023

Hi @keerthi0555 ,
Can you try with below command
curl -H “CQ-Action: Delete” -H “CQ-Handle: /content” -H “CQ-Path:/content” -H “Content-Length: 0″ -H “Content-Type: application/octet-stream”  http://localhost:4503/dispatcher/invalidate.cache 

Hope this helps,
Krishna

Keerthi0555
Level 5
June 13, 2023

It's not working.

krishna_sai
Community Advisor
Community Advisor
June 13, 2023

Hi @keerthi0555 
curl -H “CQ-Action: Flush” -H “CQ-Handle: /content” -H “CQ-Path:/content” -H “Content-Length: 0″ -H “Content-Type: application/octet-stream”  http://localhost:4503/dispatcher/invalidate.cache 
Did you observe any errors?
Hope this helps,
Krishna

SivakumarKanoori
Community Advisor
SivakumarKanooriCommunity AdvisorAccepted solution
Community Advisor
June 22, 2023

@keerthi0555 :

 

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

 

Thanks 

Siva

Thanks,Siva