something to make this possible in the future.
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 4:59 PM
To: CF-Talk
Subject: RE: How do you clear cache in CFMX?
> <cfobjectcache> and <cfcache> aren't the solution for what
> I'm talking about. The problem is that the CF Application
> Server has trusted cache enabled. I do this because its too
> slow for it to continually read the source code off of the
> shared drive it lives on. Sometimes I come up with updates
> to my application. With the server running, I want to be
> able to say.. "Dear ColdFusion, please do not stop running
> but simply reparse and recomplie all of my lovely CFM files
> because I have updated a bunch of them." I found a PPT slide
> show by Charlie Arehart which explains that there is a batch
> file that can precompile the CFM templates but I would prefer
> to have the CF appliation software recompile all templates if
> I want it to so that source code updates are reflected...
To get the effect you're describing, you can simply disable trusted cache
until all of the files have been run once.
But if the shared drive is so slow, why not store the source code locally?
You can use the shared drive as a central location for introducing changes,
and have those changes pushed or pulled to each server as necessary.
It's also worth pointing out that the trusted cache and precompilation are
two different things. When CF runs a file for the first time, it has to
compile it into Java bytecode, which can be cached on the filesystem by CF.
Then, CF puts the bytecode in memory, and caches it there as well. Finally,
CF actually runs your program. The trusted cache option simply tells CF to
use the memory cache without first checking the filesystem for changes.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/ <http://www.figleaf.com/>
voice: (202) 797-5496
fax: (202) 797-5444
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

