I have a dispatcher set up with a fairly deep stats file level due to a particular project in a multi tenancy situation.
What I'm hoping is for a way to be able to recursively flush directories to mimic a more shallow stats file level for the other tenants.
Is there a dispatcher flush command that allows me to explicitly delete a directory of content?
You could achieve this yourself by sending a simple GET request to your dispatcher. The path on the Dispatcher that you need to hit is /dispatcher/invalidate.cache
.
The following headers ensure that it's processed correctly:
The final curl command that you would build would then look something like:
curl -v \
-H "CQ-Action: DELETE" \
-H "CQ-Handle:/" \
-H "Content-Length: 0" \
-H "Content-Type: application/octet-stream" \
http://localhost:80/dispatcher/invalidate.cache;
(Where this is removing everything from the cache on a Dispatcher running under localhost on port 80. This backslashes here are optional, just making it easier to read)
You could issue this GET request from any box (subject to your firewall restrictions, etc.), for example, it could come from: