Clearing Template Cache Article

Today I have an article in the ColdFusion developer center that shows you how to automate the clearing of the trusted cache. It shows how to use a directory watcher event gateway to detect file changes and clear the trusted cache for you. This way even if you have a site that has frequent CFM or CFC changes, you can leave trusted cache on and not have to worry about forgetting to clear it.

Read the Article Here

Related Blog Entries

Comments
Barbara Severin's Gravatar Hey, Brian,

Great article! I can't wait to get my company to try this on our production servers.
# Posted By Barbara Severin | 7/25/06 4:36 PM
Benjamin Porter's Gravatar I added code to our servers to do the same thing a couple months ago. It should make working with trusted cache and scheduled deployments easier.
# Posted By Benjamin Porter | 7/27/06 6:22 PM
Brian Szoszorek's Gravatar One of my wishes is that this would be an added feature to Scorpio. That when you turn on trusted cache, it would ask if you want a gateway created to auto clear the cache when file changes happen.
# Posted By Brian Szoszorek | 7/27/06 7:22 PM