RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\

2004-03-04 Thread peter . tilbrook
I think it means is that once the template has been compiled CFMX will NOT
recompile it with trusted cache turned ON.

By deleting the compiled classes CFMX will recompile the templates.

If you make significant changes to the templates you should flush the cache
and let CFMX recompile them (which it does damn quickly).

Trusted Cache is good in a production environment but I wouldn't use it in
development environment where changes are continually made to templates.

Peter Tilbrook
Transitional Services - Enterprise eSolutions
Centrelink (http://www.centrelink.gov.au)
2 Faulding Street
Symonston ACT 2609

Tel: (02) 62115927

   
  "Dwayne Cole"    
  <[EMAIL PROTECTED]To:   CF-Talk <[EMAIL PROTECTED]>   
  com> cc: 
           Subject:  RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\ 
  05/03/2004 09:21 
  Please respond to
  cf-talk   |
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\

2004-03-04 Thread Dwayne Cole
This is a very interestind discussion are there any papers or books out there that talks about how MX processes it's work.  

Dwayne Cole, MS in MIS, MBA
Florida A&M University
Certified Advanced ColdFusion Developer
850-591-0212

 
"It can truly be said that nothing happens until there is vision. But it is equally true that a vision with no underlying sense of purpose, no calling, is just a good idea - all "sound and fury, signifying nothing."  The Fifth Discipline - Peter Senge

-- Original Message --
From: "Jon Block" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 4 Mar 2004 16:31:28 -0500

>Barney -
>
>Since my source code is on mapped network drives, *I keep trusted cache on*.
>So how about this sequence of events:
>
>1) I turn the ColdFusionMX Service OFF
>2) I delete all of the class files (del *
>C:\CFusionMX\wwwroot\WEB-INF\cfclasses\)
>3) I turn the ColdFusionMX Service ON
>
>What I am looking to accomplish is I want to make sure that all of the
>source code gets recompiled and there is no chance any updated files don't
>get picked up. This is slightly confusing because I keep trusted cache on.
>
>Thanks,
>Jon
>  -Original Message-
>  From: Barney Boisvert [mailto:[EMAIL PROTECTED]
>  Sent: Thursday, March 04, 2004 4:10 PM
>  To: CF-Talk
>  Subject: RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\
>
>
>  That won't work.  CF maintains a copy of as many templates as you let it
>in
>  memory.  The files in that directory are only used if the requested
>template
>  is not already in the memory cache (notably on server startup).  You'll
>have
>  to either let the templates refresh themselves as needed (it'll happen on
>  the first request, if trusted cache isn't enabled), or just cycle each
>  server after applying the updates.  If you're running in a cluster, then
>  it's a snap to do the latter.
>
>  Cheers,
>  barneyb
>
>  > -----Original Message-
>  > From: Jon Block [mailto:[EMAIL PROTECTED]
>  > Sent: Thursday, March 04, 2004 12:57 PM
>  > To: CF-Talk
>  > Subject: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\
>  >
>  > Sometimes I make updates to my source code that I want to have applied
>  > against my production cluster of servers. If I simply remove
>  > the class files
>  > in "C:\CFusionMX\wwwroot\WEB-INF\cfclasses", will that cause
>  > the application
>  > server to re-compile the missing source code? The reason I am
>  > considering
>  > doing this is because I periodically update dozens of files
>  > that are used by
>  > several machines. It is not feasible for me to attempt to
>  > manually invoke
>  > the updated files through a web page. I need the "cache to
>  > drop" really...
>  >
>  > Jon
>  >
>  >
>  >
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\

2004-03-04 Thread Barney Boisvert
If you cycle the server, then your memory cache will be cleared, and CF
should check the CF source code before automatically reloading the compiled
templates in /WEB-INF/cfclasses.  In other words, clearing the
/WEB-INF/cfclasses directory should be superflous, but if it's not a big
deal, then definitely do it, just to be safe.

Cheers,
barneyb 

> -Original Message-
> From: Jon Block [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 04, 2004 1:31 PM
> To: CF-Talk
> Subject: RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\
> 
> Barney -
> 
> Since my source code is on mapped network drives, *I keep 
> trusted cache on*.
> So how about this sequence of events:
> 
> 1) I turn the ColdFusionMX Service OFF
> 2) I delete all of the class files (del *
> C:\CFusionMX\wwwroot\WEB-INF\cfclasses\)
> 3) I turn the ColdFusionMX Service ON
> 
> What I am looking to accomplish is I want to make sure that all of the
> source code gets recompiled and there is no chance any 
> updated files don't
> get picked up. This is slightly confusing because I keep 
> trusted cache on.
> 
> Thanks,
> Jon
>   -Original Message-
>   From: Barney Boisvert [mailto:[EMAIL PROTECTED]
>   Sent: Thursday, March 04, 2004 4:10 PM
>   To: CF-Talk
>   Subject: RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\
> 
> 
>   That won't work.  CF maintains a copy of as many templates 
> as you let it
> in
>   memory.  The files in that directory are only used if the requested
> template
>   is not already in the memory cache (notably on server 
> startup).  You'll
> have
>   to either let the templates refresh themselves as needed 
> (it'll happen on
>   the first request, if trusted cache isn't enabled), or just 
> cycle each
>   server after applying the updates.  If you're running in a 
> cluster, then
>   it's a snap to do the latter.
> 
>   Cheers,
>   barneyb
> 
>   > -Original Message-
>   > From: Jon Block [mailto:[EMAIL PROTECTED]
>   > Sent: Thursday, March 04, 2004 12:57 PM
>   > To: CF-Talk
>   > Subject: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\
>   >
>   > Sometimes I make updates to my source code that I want to 
> have applied
>   > against my production cluster of servers. If I simply remove
>   > the class files
>   > in "C:\CFusionMX\wwwroot\WEB-INF\cfclasses", will that cause
>   > the application
>   > server to re-compile the missing source code? The reason I am
>   > considering
>   > doing this is because I periodically update dozens of files
>   > that are used by
>   > several machines. It is not feasible for me to attempt to
>   > manually invoke
>   > the updated files through a web page. I need the "cache to
>   > drop" really...
>   >
>   > Jon
>   >
>   >
>   >
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\

2004-03-04 Thread Jon Block
Barney -

Since my source code is on mapped network drives, *I keep trusted cache on*.
So how about this sequence of events:

1) I turn the ColdFusionMX Service OFF
2) I delete all of the class files (del *
C:\CFusionMX\wwwroot\WEB-INF\cfclasses\)
3) I turn the ColdFusionMX Service ON

What I am looking to accomplish is I want to make sure that all of the
source code gets recompiled and there is no chance any updated files don't
get picked up. This is slightly confusing because I keep trusted cache on.

Thanks,
Jon
  -Original Message-
  From: Barney Boisvert [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 04, 2004 4:10 PM
  To: CF-Talk
  Subject: RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\

  That won't work.  CF maintains a copy of as many templates as you let it
in
  memory.  The files in that directory are only used if the requested
template
  is not already in the memory cache (notably on server startup).  You'll
have
  to either let the templates refresh themselves as needed (it'll happen on
  the first request, if trusted cache isn't enabled), or just cycle each
  server after applying the updates.  If you're running in a cluster, then
  it's a snap to do the latter.

  Cheers,
  barneyb

  > -Original Message-
  > From: Jon Block [mailto:[EMAIL PROTECTED]
  > Sent: Thursday, March 04, 2004 12:57 PM
  > To: CF-Talk
  > Subject: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\
  >
  > Sometimes I make updates to my source code that I want to have applied
  > against my production cluster of servers. If I simply remove
  > the class files
  > in "C:\CFusionMX\wwwroot\WEB-INF\cfclasses", will that cause
  > the application
  > server to re-compile the missing source code? The reason I am
  > considering
  > doing this is because I periodically update dozens of files
  > that are used by
  > several machines. It is not feasible for me to attempt to
  > manually invoke
  > the updated files through a web page. I need the "cache to
  > drop" really...
  >
  > Jon
  >
  >
  >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\

2004-03-04 Thread Barney Boisvert
That won't work.  CF maintains a copy of as many templates as you let it in
memory.  The files in that directory are only used if the requested template
is not already in the memory cache (notably on server startup).  You'll have
to either let the templates refresh themselves as needed (it'll happen on
the first request, if trusted cache isn't enabled), or just cycle each
server after applying the updates.  If you're running in a cluster, then
it's a snap to do the latter.

Cheers,
barneyb

> -Original Message-
> From: Jon Block [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 04, 2004 12:57 PM
> To: CF-Talk
> Subject: del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\
> 
> Sometimes I make updates to my source code that I want to have applied
> against my production cluster of servers. If I simply remove 
> the class files
> in "C:\CFusionMX\wwwroot\WEB-INF\cfclasses", will that cause 
> the application
> server to re-compile the missing source code? The reason I am 
> considering
> doing this is because I periodically update dozens of files 
> that are used by
> several machines. It is not feasible for me to attempt to 
> manually invoke
> the updated files through a web page. I need the "cache to 
> drop" really...
> 
> Jon
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




del * C:\CFusionMX\wwwroot\WEB-INF\cfclasses\

2004-03-04 Thread Jon Block
Sometimes I make updates to my source code that I want to have applied
against my production cluster of servers. If I simply remove the class files
in "C:\CFusionMX\wwwroot\WEB-INF\cfclasses", will that cause the application
server to re-compile the missing source code? The reason I am considering
doing this is because I periodically update dozens of files that are used by
several machines. It is not feasible for me to attempt to manually invoke
the updated files through a web page. I need the "cache to drop" really...

Jon
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]