So what templates are executing anyway???
I came across an interesting brainteaser at work the other day, and I figured I blog about it. A few months back, I started at a new job as the Senior CF developer after their previous developer left. The site I now develop and maintain is a relatively large site, but not huge. There are somewhere in the neighborhood of 1500 .cfm and .cfc files. After a few months, I'm becoming familiar with most of the major parts of the site. So I started digging through some of the code trying to figure out what's going on in some of the darker corners of the application.
As time went on, I became more and more convinced that there are entire directories of files that are never used anymore. It's very possible. Some of the code is many years old, and there have been quite a few developers over the years. I'd love to clean this up a bit so that the next developer that joins the team doesn't have to waste their time looking at files that are never used. So, this led me to the question of the week. How do I figure out which files are actually being used, and which files are long forgotten orphans?
I tried a few different approaches before I came up with my current solution. It seems to be working fairly well, but I wanted to see if anyone else has any interesting thoughts on how to solve this problem. I'll blog my solution in the next few days.
In the mean time, what are your solutions to find orphaned ColdFusion templates?

There are no comments for this entry.
[Add Comment]