Generally it seems that CF tends to keep classes memory resident - you can check this out by deleting all the .class files, running a page - watch the files get created in the class directory, and then delete them again, and run the page again.  I've found they often don't get created again.

But deleting them shouldn't be an issue - if CF can't find the class file, it will just recreate it.

If you really want to clean up, stop the server, delete all the files, and then start it again - do note however, that will mean that the neccessary files will get recreated when they get first hit, so it can cause some initial load time for the first users.

Mark


On 16/02/06, Dale Fraser <[EMAIL PROTECTED]> wrote:

Wouldn't that be dangerous, if someone was browsing the site at that time.

Extending the idea, write a batch file to delete all files older than a
date, ie hadn't changed in a month.

Regards
Dale Fraser


> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Steve Onnis
> Sent: Thursday, 16 February 2006 09:53 AM
> To: [email protected]
> Subject: [cfaussie] Re: growing cfclasses directory
>
>
> hows your DOS?
>
> write a bat file to delete the files in the cfclasses directory and
> schedule
> it to run midnight every Saturday or something.  not a cf schedule, but a
> windows schedule
>
> Steve
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]On
> Behalf Of Brett Payne-Rhodes
> Sent: Thursday, February 16, 2006 2: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.


--
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to