Brett, did you know that you can turn off the option to create class files? It's in the CFMX Admin, as of 6.1 and above. See Server Settings>Settings>Save Class Files.
Of course, as the page says it's recommended that in production you leave this on. Even so, disabling it is an option to consider. You simply have to weigh the cost of doing that against this disk space cost. If not saves, then pages will be compiled on the first request (since restart) and will be kept in memory to be reused until the server is restarted or the template cache (or that cached entry) is flushed, much like things worked in CF 5. Yours may be an instance where the number of files and the diskspace used outweighs the benefit of having the pages compiled and saved as class files. Someone may chime in with some other nuance of detail, but I'm pretty sure that's the picture. Disabling this will certainly stop the cfclasses file bloat. (I am not sure if it will continue to use those that do exist, at least until whatever process does remove them, if any.) I hear you really asking, though, if indeed there is some process to remove them, perhaps over time. I don't think so. It seems an on/off proposition. Certainly in development, and even in some production situations, choosing not to save the class files at all is an option worth considering. Charlie Arehart CTO, New Atlanta Communications, makers of BlueDragon (678) 256-5395 [EMAIL PROTECTED] www.newatlanta.com/bluedragon/ > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Brett Payne-Rhodes > Sent: Wednesday, February 15, 2006 10:01 AM > To: [email protected] > Subject: [cfaussie] growing cfclasses directory > > > Hi, > > What do people do about cleaning up the cfclasses directory > on a production machine, if at all. On mine it is > C:\CFusionMX\wwwroot\WEB-INF\cfclasses > > I ask only because the directory now holds over 112,000 files > amounting to about 650Mb of disk space. So many file in fact > that I can't browse the direcory in Windows explorer. I > kindof understand what it is used for (compiled CF files) but > do old files get overwritten with new ones when the source CF > files change? If not then the chances are that the disk will > eventually fill up. I also use a lot of temporary files that > are <cfinclude>'d to execute small amounts of code coming out > of the database so I'm concerned that these are being > compiled but I can't see how that could be cached so there > may be another growing file problem there. > > Any hints, tips or suggestions? > > Many thanks, > > Brett > B) >
