as above.
Basically, I want /var/www/html (or whatever is the configured Apache HTTP server home folder) to be empty.
scenario1: I manually installed a code (or content package) package via packMgr. I want the dispatcher cache to be cleared.
scenario2: I installed a code package via CI/CD. I want the dispatcher cache to be clear.
I know I can manually run a curl command to invalidate dispatcher cache but I'm hoping this can be done via an agent.
curl -u admin:ADMIN-PASSWORD-HERE -k -H "CQ-Action: Delete" -H "Content-Length: 0" -H "Content-Type: application/octet-stream" -H "CQ-Handle: /content" https://PUBLISH-DISPATCHER-IP:PORT/dispatcher/invalidate.cache
Thank you.