Friday, August 19, 2016

How to invalidate the dispatcher cache for dam assets referred from multiple sites? - Adobe CQ5/AEM

How to invalidate the dispatcher cache for dam assets referred from multiple sites? - Adobe CQ5/AEM

Sometimes, we may have the scenario like the same DAM asset is referred from multiple sites and cached locally(site specific) in Adobe Experience Manager(AEM) dispatcher for the different sites. The local cache of the different sites should be invalidated whenever the asset is modified.

This post will explain how to achieve the above mentioned scenario.

Create a user in all the publisher and provide only the access to DAM- /content/dam


Create a flush agent for individual sites with the following details in all the publishers(repeat the below step for all the sites)






Agent user Id: Specify the user created in the first step
URI : Specify the URL with dispatcher server name
HTTP headers : Specify the site name(DNS for the site) as Host and specify CQ-Action-Scope: ResorceOnly(this will inform the dispatcher to only invalidating the dam asset by deleting it and not touching the .stat file)

Now, whenever the asset is modified all the local cache will be invalidated.



3 comments:

  1. Effective and successful writing tips and innovative information is possible at online for the students. Great event of process is possible at our writing service. You can participate in our writing service for creating the excellent and accurate information also.

    best essay writing service

    ReplyDelete
  2. If the DAM asset is getting referred from the common folder like /content/dam/myproject/dam for multiple sites , then is required to add host entry at HTTP headers at dispatcher flush agent or is it required to have site specific dispatcher flush agent?

    Please suggest.

    ReplyDelete
    Replies
    1. Refer the following post to implement that scenario - https://www.albinsblog.com/2017/11/flush-dispatcher-cache-for-dam-assets-used-on-multiple-websites.html?m=1#.W94vnZNKg2w

      Delete