understanding application variables
I'm getting started with Coldfusion and making some tests with application variables.
I am not understanding the way coldfusion update values of application variables.
For example
<cfparam name="application.userList" type="string" default=""> <cfif listLen(application.userList) eq 0> <cfquery name="getUsers"> SELECT * FROM members </cfquery> <cfset application.userList = valueList(getUsers.username)> </cfif> <cfoutput>#application.userList#</cfoutput>
ok I get the following output
username1, username2,username3...
Then I added a record into database and I run the same above code.
Does Coldfusion allow to update the value of an application variable at runtime ?
Why application.userList does not update ?
Any suggestion is much appreciated !
