In our application.cfm file we use a statement like
<cfif not isdefined("application.exchangerate")>
<cflock scope="application" type="exclusive" timeout="60">
<cf_exchange>
</cflock>
</cfif>.
Sometimes getting the exchange rate can take a long time. We have several
other scripts that check for application vars and create them if they do
not exist. I'm wondering how this would effect a busy site. If a user hit
the page while another user was in the process of initially building the
application vars, would the second user also try to populate the vars?
Brook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4