Invalidate the Content Delivery Network cache by way of Dynamic Media Classic invalidating-your-cdn-cached-content
Dynamic Media assets are cached by the CDN (Content Delivery Network) for fast delivery. However, when you make updates to an asset, you want those changes to take effect immediately. Invalidating your CDN cached content lets you quickly update assets that are delivered by Dynamic Media, instead of waiting for the cache to expire.
If you use Dynamic Media in Experience Manager 6.5, Service Pack 6 (Experience Manager 6.5.6) or later, follow the steps found in Invalidate the CDN cache by way of Dynamic Media.
To invalidate the CDN cache by way of Dynamic Media Classic:
-
Open the Dynamic Media Classic desktop application, then sign in to your account.
Your credentials and logon were provided by Adobe at the time of provisioning. If you do not have this information, contact Adobe Customer Support.
-
Near the upper-right corner of the page, navigate to Setup > Application Setup > General Settings.
-
On the Application General Settings page, under the Servers group heading, locate the CDN Invalidation Template text box.
-
Specify the template that is used for invalidating the CDN (Content Delivery Network) cache.
For example, suppose you enter an image URL (including image presets or modifiers) referencing
<ID>
, instead of a specific image ID as in the following example:https://server.com/is/image/Company/<ID>?$product$
If the Template just contains
<ID>
, then Dynamic Media fills inhttps://<server>/is/image
where<server>
is the Publish Server Name that is defined in General Settings and <ID> is the assets selected to be invalidated. -
In the lower-right corner of the page, select Close.
-
In the Dynamic Media Classic user interface, select one or more assets, then go to File > Invalidate CDN. You see a list of one or more URLs generated from the template you created and the assets you selected. It uses the server URL listed under “Published Server Name” under the Application General Settings.
For example, with the CDN Invalidation Template set in the previous step, suppose you selected a single image asset image named
Backpack_B
. When you go to File > Invalidate CDN, it results in the following generated URL in the CDN Invalidation user interface:https://server.com/is/image/Company/Backpack_B?$product$
-
In the URL list box, select Continue to clear the cache for each specific URL. You can edit a URL or you can add a URL by typing or pasting it into the URL list box; you do not need to set CDN Invalidate Template beforehand.
After you select Continue, an indicator is displayed that gives you an estimate of how long it will take to clear the cache.
If you selected multiple assets, then went to File > Invalidate CDN, each asset is referenced in the saved Template URL. Therefore, you can define a CDN Invalidate Template referencing each URL image preset that is referenced on your website (such as product detail and search results). Then, when you select one or images for invalidation from cache, the URLs automatically populate the interface.
note note NOTE When you select assets, and then go to File > Invalidate CDN, Dynamic Media uses an invalidate CDN template to automatically create URLs to invalidate from the Content Delivery Network (CDN). If there is nothing in the CDN Invalidate Template text box, then you get a blank URL list. Caching at the CDN is not asset-based; it is URL-based. Therefore, it is necessary to be aware of the complete URLs that are on your website. After you determine those URLs, you can add them to the Invalidate CDN Template text box earlier in the steps. Then, you can select those assets, and invalidate the URLs in one step. Another option is to add complete URLs to the Invalidate CDN list. If you follow this approach, it is unnecessary to select assets in Dynamic Media Classic before going to the File > Invalidate CDN option.