Tuesday, August 9, 2016

Clear Dispatcher Cache Manually


There are many ways to clear the Dispatcher Cache few of them are as follow.

By Using Curl Command:

curl -u admin:admin -X POST -H  "CQ-Action: Activate"  -H  "CQ-Handle: pagepath " -H  "CQ-Path: pagepath "   -H "Content-Length: 0"  -H  "Content-Type: application/octetstream" 
http://DispatcherServerHost:DispatcherServerPort/dispatcher/invalidate.cache


By Using Rest Client:

http://DispatcherServerHost:DispatcherServerPort/dispatcher/invalidate.cache
CQ-Action: Activate
CQ-Handle: pagepath 
CQ-Path:    pagepath 
Content-Length: 0

Content-Type: application/octet-stream











Note: Suppose we have to delete  /content/geometrixx/en/products.html then
          pagepath = /content/geometrixx/en/products










No comments:

Post a Comment