Start out by creating two files that the event gateway needs: a configuration file and a simple ColdFusion component:
Open Notepad or any text editor and enter the following code:
directory=c:/Inetpub/wwwroot/adobeArticles recurse=yes extensions=doc, pdf interval=10000 addFunction=refreshVerity changeFunction=refreshVerity deleteFunction=refreshverity
You may wonder what you just set up. Here is a brief explanation:
onAddonChangeonDeleteNote: If you have DirectoryWatcher checking a large directory of files for changes too often, this may cause extra overhead and performance strain for your server. Change the interval setting in your documentListener.cfg to one minute instead of every five seconds, for example. Always test these scenarios in a development environment first and adjust the settings and attributes that work best for your setup before deploying to a production environment.