Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Not able to clear dispatcher cache with the curl command

Avatar

Level 6

Tried this curl -u admin:admin -H "CQ-Action: Activate" -H "CQ-Handle: /content/" -H "CQ-Path: /content/" -H "Content-Length: 0" -H "Content-Type: application/octet-stream" http://localhost:4503/dispatcher/invalidate.cache as per the documentation

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

4 Replies

Avatar

Community Advisor

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

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

@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