Please excuse my ignorance but what is execute.cfm? I'm assuming its a hack
to take a string with variables in it and then turn it into a completely
evaluated string.
i.e. string is a variable with the following value (including a nested
variable)
String = This is a #var1# string where var1 has a value of yellow
you want a result of: This is a yellow string where var1 has a value of
yellow
If this is what your looking for, then the following will avoid the need to
write new templates for execution:
#Evaluate('"'&string&'"')#
Evaluate will try to evaluate the variable string and then concatenate it
with the first and last text pieces which are a double quote wrapped in
single quotes (making the double quote a text value). When these three
things are concatenated, the entire thing will evaluate causing the
variables within the string to evaluate properly. This applies to functions
as well.
Now as to the exact question, every time you write a new temporary.cfm it is
a new file (new size, date, etc.) when CF tries to run it it examines the
size and date to whats in cache. If they're not the same it replaces it with
the new file. This basically negates all caching with each new temporary.cfm
file.
> Ben, (and others)
>
> we're a heavy user of the execute.cfm tag.
>
> Since this tag creates temporary.cfm files that are then accessed by the
> cold fusion server, what is the effect of all these files on the caching
of
> .cfm templates ?? It seems they would knock permanent templates out of
the
> cache..
>
> Is this a problem ?? if so, are there any alternatives to this approach
??
>
>
>
> Brian L. Wolfsohn http://www.cus.com
> CUS Business Systems Ft.Lauderdale,FL
> Software for Auctioneers (954) 565-5600 Email:[EMAIL PROTECTED]
> --------------------------------------------------------------------------
----------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]