CQ Dispatcher Flush Setup
CQ Flush Agent is required to invalidate / clean dispatcher cache. Before you set dispatcher Flush make sure that replication agent is set up properly as discussed in last lesson. It is recommended to configure dispatcher flush agent on publish instance.
Configure Dispatcher Flush On Publish:
Some Dispatcher Flush Configuration on dispatcher.any file
All dispatcher specific configuration can be obtained from this document http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_config.html Please go through this carefully.
We will cover some configuration that can effect caching,
Dispatcher Flush config
/cache { /docroot "/opt/dispatcher/cache" /statfile "/tmp/dispatcher-website.stat" /allowAuthorized "0" /rules { # List of files that are cached example
#Syntax:
#/0001 #{ #/glob "*.html" #/type "allow" #}
# allow *.html this mean cache all file with .html extension
#deny *.txt this mean that do not cache any file with txt extension
#deny */private/* this mean that do not cache any document that has /private/ in URI } /invalidate { # List of files that are auto-invalidated Example
#Syntax
#/0001 #{ #/glob "*.html" #/type "allow" #} #}
#allow *.html mean, for dispatcher flush request all html files will get invalidated. }