I have an app that seem to run very slow at time, I am looking for ways that I may not be using CF efficiently.
The app is in french and english, and is able user is able to switch back and forth from french to english. I use a session variable for this.
My code states is <cfif session.language eq 1>english text<cfelse>french text</cfif>
Here a piece of table
<table border="1" cellspacing="0" cellpadding="1" bordercolor="000066" align="center">
<tr>
<td><cfif session.language eq 1>Issue #<cfelse>Demande #</cfif></td>
<td><cfif session.language eq 1>User ID<cfelse>Identification de l'usager</cfif></td>
<td><cfif session.language eq 1>Date Logged<cfelse>Date d'entrée</cfif></td>
My question is, is is better to Have the whole english table under the first if statement then then entire french table in else faster than what I am doing above. I like the method above because I have essentially only one table to view the other way I would have two.
I am looking for suggestion on how to optimize this.
Thanks
Mike
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

