Is it possible to recursively flush directories in the CQ5/AEM apache dispatcher? -


Due to a special project in a multi-rented situation, I have a large number of dispatches set with deep data file levels.

I am hoping that more disturbing figures for other tenants is a way to be able to flush the directories to duplicate the file level.

Is there a sender flush command that allows me to explicitly delete a directory of contents?

You can get it by sending a simple GET request to yourself. The dispatch you need to hit is the path /dispatcher/invalidate.cache .

The following headers make sure that it is processed correctly:

  • CQ-Action: Delete "can be set on. I think "EXPIRE" also works to flag content as out-of-date, but it is not physically removed from the cache.
  • CQ-Handle: It specifies what should be deleted, starting with the root of your cache folder such as "/ content / geometry", under geometry and everything Will be removed. "/" Will remove everything in the cache.
  • Content-Length & amp; Content-Type: Make sure the request is properly controlled as we are not sending a body, the length can be set to 0. Content-type can be "application / octet-stream" (other values ​​have not been tried)

    The last curl command that you create will look something like this:

      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 it is extracting everything from cash on the dispatcher running on Local 80 on port 80. These backslashes are optional, easy to read)


    You can issue this request from any box (for example, your firewall restrictions etc), for example, it could be from:

    • Your CI Build agent
    • A defined task in your published example
    • In your writer example An administrative component that takes the path to flush.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -