CQ5 Tutorial: Automatic Dispatcher Cache Invalidation

In order to set up automatic cache invalidation on the Dispatchers, you need to create new replication agents on your Author instance.

Log into your author instance, and open the Tools console. Open the Replication tree in navigation pane and expand the Agents on author branch.

Agents on author

Select the Dispatcher Flush replication agent from the right, click copy, then paste. Repeat this for each Dispatcher you want to create a flush agent for.

Agents on author - new flush agent

Double click the newly created agent you want to edit. It should open in a new tab/window with the details of the replication agent.

Click the edit button, and rename the agent on the Settings tab if desired.

On the Transport tab, update the URI to the server and port of the dispatcher Apache (or whatever web-server software you use) installation, ensuring to leave the remainder of the URI as /dispatcher/invalidate.cache

Agent settings - Transport tab

Open the Triggers tab and ensure that the On Modification checkbox is selected.

Agent settings - Triggers

Click OK to save the configuration, then click the Test Connection link to ensure the agent is configured correctly. If the test succeeds, edit the agent again and check the Enabled checkbox on the Settings tab, and then OK to save the agent. It should now be saved, running, and invalidating the cache on the Dispatcher for any content that is modified from now on. This caching of course is governed by the dispatcher.any file, which I’ll cover in a alter post.

This entry was posted in CQ5, Tutorials and tagged , , . Bookmark the permalink.

One Response to CQ5 Tutorial: Automatic Dispatcher Cache Invalidation

  1. Pingback: CQ5 Tutorial: Automatic Dispatcher Cache Invalidation – Part 2 | Code Monkey

Add a comment...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s