cf gets request cf querys cvar store (registry, db, whatever) cf runs template cf updates cvar store
I'm not sure where cf returns the generated content to the web server (or directly to the client) in relation to when it updates the client variables. If I had to guess, I'd say it returns after the update, but that's only a guess. The update query can be turned off in CFMX (perhaps earlier?) if no actual client variables were updated, and all that would change is hitcount and lastvisit. Give a little performance bonus if you're mostly read-only, but having lastvisit around is nice for some things. cheers, barneyb --- Barney Boisvert, Senior Development Engineer AudienceCentral [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com > -----Original Message----- > From: Matt Robertson [mailto:[EMAIL PROTECTED] > Sent: Monday, June 30, 2003 1:32 PM > To: CF-Talk > Subject: Re: when do client variables update the db? > > > Immediately. I can set a cvar on Line 1 and use it in code > starting on Line 2. > > It may not be committed to disk right then and there, but you can > use it immediately. > > The only exception to this I found was a bug in CFMX (initial > release... haven't tried it recently), where if a cvar was set on > a template, and that template had an iframe then the cvar was not > available in the iframe unless you refreshed it (after the error > was thrown). The same operation runs fine in CF 4.5. > > ------------------------------------------- > Matt Robertson, [EMAIL PROTECTED] > MSB Designs, Inc. http://mysecretbase.com > ------------------------------------------- > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

