ColdFusion speed cost of FileExists
Posted
by davidosomething
on Stack Overflow
See other posts from Stack Overflow
or by davidosomething
Published on 2010-06-17T15:32:13Z
Indexed on
2010/06/17
16:53 UTC
Read the original article
Hit count: 353
coldfusion
|coldfusion-8
I want to:
- on every page,
- check if a file exists
- include that file if TRUE
i.e.:
<cfset variables.includes.header = ExpandPath("_inc_header.cfm")>
<cfif FileExists(variables.includes.header)>
<cfinclude template = "#variables.includes.header#">
</cfif>
Is this a good idea?
© Stack Overflow or respective owner