Configuring a Trigger to Clear the Cache of an Asset

This example will configure a Trigger to clear the cache of an asset whenever a change has been made to it.

To configure this Trigger, follow the steps outlined below.

  1. Create a new Trigger asset.
  2. Enter a Name and Description for the Trigger, as shown in the figure below.

    Details section
    The Details section of the Trigger

  3. In the Events section, select the Asset Updated Trigger Event.
  4. In the Conditions section, select the Asset ID Trigger Condition and click Commit. Additional fields will appear in the Conditions section, as shown in the figure below.

    Asset ID Trigger Condition
    The Asset ID Trigger Condition

    In the Asset ID is field, specify the asset ID of the asset to clear the cache of.
  5. In the Actions section, select the Clear Matrix Cache Trigger Action and click Commit. Additional fields will appear in the Actions section, as shown in the figure below.

    Clear Matrix Cache Trigger Action
    The Clear Matrix Cache Trigger Action

    Enable the Include Current Asset field. Select the Ignore Permissions field to allow Squiz Matrix to ignore the access rights of the user/s firing this trigger when performing this Trigger Action.
  6. When you are satisfied with the settings of this Trigger, change its Status to Enabled and click Commit.

Whenever a change is made to the select asset, the cache of the asset will now be cleared.